Mercurial > repos > blastem
diff io.h @ 1207:9d6f155732ed
Basic support for mapping an analog axis to functionality
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 26 Jan 2017 23:49:13 -0800 |
parents | 1ad0ec7e3939 |
children | cf69a179aeaf |
line wrap: on
line diff
--- a/io.h Thu Jan 26 20:30:33 2017 -0800 +++ b/io.h Thu Jan 26 23:49:13 2017 -0800 @@ -95,6 +95,7 @@ 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); +void handle_joy_axis(int joystick, int axis, int16_t value); void handle_joy_added(int joystick); void handle_mouse_moved(int mouse, uint16_t x, uint16_t y, int16_t deltax, int16_t deltay); void handle_mousedown(int mouse, int button);