gamepad mapping works

This commit is contained in:
BADIM-PC\Vadim
2018-01-24 17:56:55 +03:00
parent dc8c10438b
commit 54b070850c
3 changed files with 731 additions and 413 deletions

View File

@@ -55,8 +55,8 @@
#define CONFIG_TIC "config " TIC_VERSION_LABEL ".tic"
#define CONFIG_TIC_PATH TIC_LOCAL CONFIG_TIC
#define KEYMAP_COUNT (sizeof(tic80_input) * BITS_IN_BYTE)
#define KEYMAP_SIZE (KEYMAP_COUNT * sizeof(SDL_Scancode))
#define KEYMAP_COUNT (sizeof(tic80_gamepads) * BITS_IN_BYTE)
#define KEYMAP_SIZE (KEYMAP_COUNT)
#define KEYMAP_DAT "keymap.dat"
#define KEYMAP_DAT_PATH TIC_LOCAL KEYMAP_DAT
@@ -174,7 +174,7 @@ typedef enum
void setStudioEvent(StudioEvent event);
void showTooltip(const char* text);
SDL_Scancode* getKeymap();
tic_key* getKeymap();
const StudioConfig* getConfig();