diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-04-21 22:08:26 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-04-21 22:08:26 -0700 |
commit | d5c369a7c040e96e2067ebda45d9e1b9ad018e63 (patch) | |
tree | 815e28c01fd1ca72fabc06ea45811a7be3287ab2 /io.h | |
parent | 19fe07ac64063803e053a111c3a6b5f47bb3cffe (diff) |
Move mouse mode and capture state to emulation context so it persists properly when switching between the menu and the game
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |