reverted ugly keyboard handling

This commit is contained in:
nesbox
2018-09-04 23:22:59 +03:00
parent ae2f23a1d5
commit 559a8bb920
9 changed files with 51 additions and 67 deletions

View File

@@ -110,17 +110,10 @@ typedef struct
typedef u8 tic_key;
typedef struct
typedef union
{
union
{
tic_key keys[TIC80_KEY_BUFFER];
u32 data;
};
s8 text;
u8 temp[3];
tic_key keys[TIC80_KEY_BUFFER];
u32 data;
} tic80_keyboard;
typedef struct
@@ -128,6 +121,7 @@ typedef struct
tic80_gamepads gamepads;
tic80_mouse mouse;
tic80_keyboard keyboard;
} tic80_input;
TIC80_API tic80* tic80_create(s32 samplerate);