1
0
mirror of https://github.com/simh/simh.git synced 2026-04-14 07:50:15 +00:00

VIDEO: Add ability for a video window Quit event to optionally propagate back to SCP.

This commit is contained in:
Mark Pizzolato
2016-01-29 00:30:02 -08:00
parent 9da10c1219
commit 51419a2e4b
2 changed files with 14 additions and 0 deletions

View File

@@ -174,6 +174,8 @@ typedef struct key_event SIM_KEY_EVENT;
t_stat vid_open (DEVICE *dptr, const char *title, uint32 width, uint32 height, int flags);
#define SIM_VID_INPUTCAPTURED 1 /* Mouse and Keyboard input captured (calling */
/* code responsible for cursor display in video) */
typedef void (*VID_QUIT_CALLBACK)(void);
t_stat vid_register_quit_callback (VID_QUIT_CALLBACK callback);
t_stat vid_close (void);
t_stat vid_poll_kb (SIM_KEY_EVENT *ev);
t_stat vid_poll_mouse (SIM_MOUSE_EVENT *ev);