comparison 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
comparison
equal deleted inserted replaced
970:e2d7067ea2d8 971:e28f365605da
66 IO_WRITTEN, 66 IO_WRITTEN,
67 IO_READ_PENDING, 67 IO_READ_PENDING,
68 IO_READ 68 IO_READ
69 }; 69 };
70 70
71 typedef struct genesis_context genesis_context;
72
71 void set_keybindings(io_port *ports); 73 void set_keybindings(io_port *ports);
72 void map_all_bindings(io_port *ports); 74 void map_all_bindings(io_port *ports);
73 void setup_io_devices(tern_node * config, rom_info *rom, io_port * ports); 75 void setup_io_devices(tern_node * config, rom_info *rom, genesis_context * gen);
74 void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction); 76 void io_adjust_cycles(io_port * pad, uint32_t current_cycle, uint32_t deduction);
75 void io_data_write(io_port * pad, uint8_t value, uint32_t current_cycle); 77 void io_data_write(io_port * pad, uint8_t value, uint32_t current_cycle);
76 uint8_t io_data_read(io_port * pad, uint32_t current_cycle); 78 uint8_t io_data_read(io_port * pad, uint32_t current_cycle);
77 void handle_keydown(int keycode); 79 void handle_keydown(int keycode);
78 void handle_keyup(int keycode); 80 void handle_keyup(int keycode);