From a26f6e7deefcfc4402b4469bf25bb716a4c8ba34 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Fri, 14 Jun 2013 00:25:04 -0700 Subject: Make keybindings data driven so they can be populated from a config file later --- blastem.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'blastem.h') diff --git a/blastem.h b/blastem.h index 351ad9f..fce42a4 100644 --- a/blastem.h +++ b/blastem.h @@ -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_ -- cgit v1.2.3