diff io.h @ 971:e28f365605da

Move mouse mode and capture state to emulation context so it persists properly when switching between the menu and the game
author Michael Pavone <pavone@retrodev.com>
date Thu, 21 Apr 2016 22:08:26 -0700
parents 9e882eca717e
children 7267bc1ab547
line wrap: on
line diff
--- a/io.h	Thu Apr 21 18:48:15 2016 -0700
+++ b/io.h	Thu Apr 21 22:08:26 2016 -0700
@@ -68,9 +68,11 @@
 	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);