diff options
author | Michael Pavone <pavone@retrodev.com> | 2016-05-11 01:15:54 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2016-05-11 01:15:54 -0700 |
commit | 617489dfc2c1a2502ebdb8df0edfa1897d0bf6b6 (patch) | |
tree | 7a1461da1aa3a82283fa6665122693dad8ba1842 /io.h | |
parent | 924eb3bc27ae38901da618cb9d5c0ee82d651749 (diff) |
Initial stab at Saturn keyboard support
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -50,6 +50,7 @@ typedef struct { uint16_t events[8]; uint8_t read_pos; uint8_t write_pos; + uint8_t tr_counter; } keyboard; } device; uint8_t output; @@ -82,8 +83,8 @@ 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); -void handle_keydown(int keycode, char scancode); -void handle_keyup(int keycode, char scancode); +void handle_keydown(int keycode, uint8_t scancode); +void handle_keyup(int keycode, uint8_t scancode); void handle_joydown(int joystick, int button); void handle_joyup(int joystick, int button); void handle_joy_dpad(int joystick, int dpad, uint8_t state); |