summaryrefslogtreecommitdiff
path: root/include/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/input.h')
-rw-r--r--include/input.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/include/input.h b/include/input.h
index 0a54d19..b2a0ea1 100644
--- a/include/input.h
+++ b/include/input.h
@@ -2,8 +2,11 @@
#define MINO_INPUT_H
#include"mino.h"
typedef struct{U32 x,y;}InputPoint;
-typedef struct{U32 f;}InputButtons;
-enum{IB_1=1<<0,IB_2=1<<1,IB_3=1<<2,IB_4=1<<3};
-X InputPoint input_point(V);
-X InputButtons input_buttons(V);
+enum{IB_1=1<<0, IB_2=1<<1, IB_3=1<<2, IB_4=1<<3,
+ IB_L=1<<4, IB_R=1<<5, IB_U=1<<6, IB_D=1<<7,
+ IB_S=1<<8, IB_Z=1<<9, IB_X=1<<10,IB_C=1<<11};
+typedef struct{U32 p,h;}InputButtons;
+X InputPoint input_point;
+X InputButtons input_buttons;
+X V input_update(V);
#endif