diff io.h @ 913:a5a51465f8b0

Allow IO device config to be overriden by ROM DB
author Michael Pavone <pavone@retrodev.com>
date Tue, 08 Dec 2015 19:33:58 -0800
parents 599e2861f484
children 9e882eca717e
line wrap: on
line diff
--- a/io.h	Sun Dec 06 19:29:34 2015 -0800
+++ b/io.h	Tue Dec 08 19:33:58 2015 -0800
@@ -7,6 +7,7 @@
 #define IO_H_
 #include <stdint.h>
 #include "tern.h"
+#include "romdb.h"
 
 enum {
 	IO_GAMEPAD3,
@@ -69,7 +70,7 @@
 
 void set_keybindings(io_port *ports);
 void map_all_bindings(io_port *ports);
-void setup_io_devices(tern_node * config, io_port * ports);
+void setup_io_devices(tern_node * config, rom_info *rom, io_port * ports);
 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);