From 742c422439bc07e5e660f2c78d380b10287b62ff Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Thu, 21 Jul 2011 20:02:44 +0200 Subject: [PATCH] Also enable diagonal scrolling. --- firmware/applications/scroll.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/firmware/applications/scroll.c b/firmware/applications/scroll.c index db41c14..2499b25 100644 --- a/firmware/applications/scroll.c +++ b/firmware/applications/scroll.c @@ -14,7 +14,6 @@ void main_scroll(void) { int dx=0; char key; backlightInit(); - font_direction = FONT_DIR_LTR; // LeftToRight is the default font=&Font_7x8; dx=DoString(0,0,"Hello World"); @@ -23,24 +22,24 @@ void main_scroll(void) { lcdDisplay(); //// delayms(10); - key= getInput(); + key= getInputRaw(); // Easy flashing - if(key==BTN_ENTER){ + if(key&BTN_ENTER){ DoString(0,8,"Enter ISP!"); lcdDisplay(); ISPandReset(); } - if(key==BTN_RIGHT){ + if(key&BTN_RIGHT){ lcdShift(1,0,true); } - if(key==BTN_LEFT){ + if(key&BTN_LEFT){ lcdShift(-1,0,true); } - if(key==BTN_UP){ + if(key&BTN_UP){ lcdShift(0,1,true); } - if(key==BTN_DOWN){ + if(key&BTN_DOWN){ lcdShift(0,-1,true); }