diff io.h @ 1028:56b1748a8473

Initial stab at Saturn keyboard support
author Michael Pavone <pavone@retrodev.com>
date Wed, 11 May 2016 01:15:54 -0700
parents 7267bc1ab547
children 2eb54e24914e
line wrap: on
line diff
--- a/io.h	Tue May 10 21:26:27 2016 -0700
+++ b/io.h	Wed May 11 01:15:54 2016 -0700
@@ -50,6 +50,7 @@
 			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 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);