1 /* Copyright (C) 2001 by Alex Kompel <shurikk@pacbell.net> */
2 /* NetHack may be freely redistributed. See license for details. */
7 /* nethack input queue - store/extract input events */
10 #define NHEVENT_CHAR 1
11 #define NHEVENT_MOUSE 2
12 typedef struct mswin_event {
24 } MSNHEvent, *PMSNHEvent;
26 #define NHEVENT_KBD(c) { MSNHEvent e; e.type=NHEVENT_CHAR; e.kbd.ch=(c); mswin_input_push(&e); }
27 #define NHEVENT_MS(_mod, _x, _y) { MSNHEvent e; e.type=NHEVENT_MOUSE; e.ms.mod = (_mod); e.ms.x=(_x); e.ms.y=(_y); mswin_input_push(&e); }
29 void mswin_nh_input_init(void);
30 int mswin_have_input(void);
31 void mswin_input_push(PMSNHEvent event);
32 PMSNHEvent mswin_input_pop(void);
33 PMSNHEvent mswin_input_peek(void);
35 #endif /* MSWINInput_h */