From d5c369a7c040e96e2067ebda45d9e1b9ad018e63 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 21 Apr 2016 22:08:26 -0700 Subject: Move mouse mode and capture state to emulation context so it persists properly when switching between the menu and the game --- io.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'io.h') diff --git a/io.h b/io.h index c61949f..e020dc7 100644 --- a/io.h +++ b/io.h @@ -68,9 +68,11 @@ enum { IO_READ }; +typedef struct genesis_context genesis_context; + void set_keybindings(io_port *ports); void map_all_bindings(io_port *ports); -void setup_io_devices(tern_node * config, rom_info *rom, io_port * ports); +void setup_io_devices(tern_node * config, rom_info *rom, genesis_context * gen); void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction); void io_data_write(io_port * pad, uint8_t value, uint32_t current_cycle); uint8_t io_data_read(io_port * pad, uint32_t current_cycle); -- cgit v1.2.3