X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_in.h;h=5aeecc077fe4d043ae836b52fd58d3aeadabc4a6;hb=dcc1bead76a272cba47fdb238e25bc123047b888;hp=efe70039fa0dcdd5270cc0694a630af8cb73f247;hpb=8d79cfaff66a2c9efe210ea9508c83b9b2aa9d5e;p=16.git diff --git a/src/lib/16_in.h b/src/lib/16_in.h index efe70039..5aeecc07 100644 --- a/src/lib/16_in.h +++ b/src/lib/16_in.h @@ -30,12 +30,14 @@ #include #include "src/lib/lib_head.h" -//++++#ifdef __DEBUG__ +#ifdef __DEBUG__ #define __DEBUG_InputMgr__ -//++++#endif +#endif +#ifdef __DEBUG_InputMgr__ #define TESTKEYIN -//#define TESTCONTROLNOISY +#define TESTCONTROLNOISY +#endif #define KeyInt 9 // The keyboard ISR number @@ -164,12 +166,12 @@ typedef enum { motion_None = 0, motion_Right = 1,motion_Down = 1 } Motion; -typedef enum { - dir_North,//dir_NorthEast, - dir_East,//dir_SouthEast, - dir_South,//dir_Soutinest, - dir_West,//dir_Nortinest, - dir_None +typedef enum { + dir_North,//dir_NorthEast, + dir_West,//dir_Nortinest, + dir_None, + dir_East,//,dir_SouthEast, + dir_South,//dir_Soutinest, } Direction; typedef struct { boolean button0,button1,button2,button3; @@ -181,11 +183,12 @@ typedef struct { typedef struct { ScanCode button0,button1, //upleft, - up, + up, + down, + left, + right //upright, - left, right, //downleft, - down //,downright ; } KeyboardDef;