diff options
author | kitty piapiac <kcp@bsd.computer> | 2023-04-21 23:50:06 -0700 |
---|---|---|
committer | kitty piapiac <kcp@bsd.computer> | 2023-04-21 23:50:06 -0700 |
commit | 8f38659932677a2b0e00b7f4abda54ac76a8ecd9 (patch) | |
tree | 705767e858a3fe0c89b7b4bc0440012a084c6921 /include/input.h | |
parent | 599cde356b576759475d34dbfadb5548926c089d (diff) |
SRS-style rotation skeleton
Diffstat (limited to 'include/input.h')
-rw-r--r-- | include/input.h | 11 |
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 |