diff options
author | Mike Pavone <pavone@retrodev.com> | 2013-06-14 00:25:04 -0700 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2013-06-14 00:25:04 -0700 |
commit | a26f6e7deefcfc4402b4469bf25bb716a4c8ba34 (patch) | |
tree | 2e12581b620756d713234983f687b84e7c4a132d /blastem.h | |
parent | 176fd949e121edcea17af0907198cfb8d8250d28 (diff) |
Make keybindings data driven so they can be populated from a config file later
Diffstat (limited to 'blastem.h')
-rw-r--r-- | blastem.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -35,6 +35,7 @@ typedef struct { #define GAMEPAD_TH0 0 #define GAMEPAD_TH1 1 #define GAMEPAD_EXTRA 2 +#define GAMEPAD_NONE 0xF extern io_port gamepad_1; extern io_port gamepad_2; @@ -42,6 +43,8 @@ extern io_port gamepad_2; void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction); uint16_t read_dma_value(uint32_t address); m68k_context * debugger(m68k_context * context, uint32_t address); +void handle_keydown(int keycode); +void handle_keyup(int keycode); #endif //BLASTEM_H_ |