Mercurial > repos > blastem
comparison io.h @ 1427:4e5797b3935a
WIP - New savestate format
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 06 Aug 2017 00:06:36 -0700 |
parents | 040c5600e2d9 |
children | 31a2997b745e |
comparison
equal
deleted
inserted
replaced
1426:957325c990d5 | 1427:4e5797b3935a |
---|---|
6 #ifndef IO_H_ | 6 #ifndef IO_H_ |
7 #define IO_H_ | 7 #define IO_H_ |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include "tern.h" | 9 #include "tern.h" |
10 #include "romdb.h" | 10 #include "romdb.h" |
11 #include "serialize.h" | |
11 | 12 |
12 enum { | 13 enum { |
13 IO_GAMEPAD2, | 14 IO_GAMEPAD2, |
14 IO_GAMEPAD3, | 15 IO_GAMEPAD3, |
15 IO_GAMEPAD6, | 16 IO_GAMEPAD6, |
107 void handle_joy_axis(int joystick, int axis, int16_t value); | 108 void handle_joy_axis(int joystick, int axis, int16_t value); |
108 void handle_joy_added(int joystick); | 109 void handle_joy_added(int joystick); |
109 void handle_mouse_moved(int mouse, uint16_t x, uint16_t y, int16_t deltax, int16_t deltay); | 110 void handle_mouse_moved(int mouse, uint16_t x, uint16_t y, int16_t deltax, int16_t deltay); |
110 void handle_mousedown(int mouse, int button); | 111 void handle_mousedown(int mouse, int button); |
111 void handle_mouseup(int mouse, int button); | 112 void handle_mouseup(int mouse, int button); |
113 void io_serialize(io_port *port, serialize_buffer *buf); | |
114 void io_deserialize(deserialize_buffer *buf, void *vport); | |
112 | 115 |
113 #endif //IO_H_ | 116 #endif //IO_H_ |
114 | 117 |