diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-12-08 19:33:58 -0800 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-12-08 19:33:58 -0800 |
commit | ff238c672d2f623363169f7ea6a3f292bbb24543 (patch) | |
tree | 4e868afca564f77e1202e02d905f15cac22ab8d0 /io.h | |
parent | 0da12ea007ff827acf74c489d2f3a95fcf17e6af (diff) |
Allow IO device config to be overriden by ROM DB
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ #define IO_H_ #include <stdint.h> #include "tern.h" +#include "romdb.h" enum { IO_GAMEPAD3, @@ -69,7 +70,7 @@ enum { 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); |