summaryrefslogtreecommitdiff
path: root/blastem.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-06-14 00:25:04 -0700
committerMike Pavone <pavone@retrodev.com>2013-06-14 00:25:04 -0700
commita26f6e7deefcfc4402b4469bf25bb716a4c8ba34 (patch)
tree2e12581b620756d713234983f687b84e7c4a132d /blastem.h
parent176fd949e121edcea17af0907198cfb8d8250d28 (diff)
Make keybindings data driven so they can be populated from a config file later
Diffstat (limited to 'blastem.h')
-rw-r--r--blastem.h3
1 files changed, 3 insertions, 0 deletions
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_