1
0
mirror of https://github.com/simh/simh.git synced 2026-04-16 00:21:35 +00:00

video: Add support for SDL joysticks and game controllers.

This commit is contained in:
Lars Brinkhoff
2020-02-04 09:43:38 +01:00
parent 05e4babe24
commit 72b89054da
2 changed files with 187 additions and 0 deletions

View File

@@ -180,6 +180,9 @@ t_stat vid_open (DEVICE *dptr, const char *title, uint32 width, uint32 height, i
/* code responsible for cursor display in video) */
typedef void (*VID_QUIT_CALLBACK)(void);
t_stat vid_register_quit_callback (VID_QUIT_CALLBACK callback);
typedef void (*VID_GAMEPAD_CALLBACK)(int, int, int);
t_stat vid_register_gamepad_motion_callback (VID_GAMEPAD_CALLBACK);
t_stat vid_register_gamepad_button_callback (VID_GAMEPAD_CALLBACK);
t_stat vid_close (void);
t_stat vid_poll_kb (SIM_KEY_EVENT *ev);
t_stat vid_poll_mouse (SIM_MOUSE_EVENT *ev);