mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 10:48:18 +08:00
pdcurses hack to silence compiler warning about MOUSE_MOVED re-definition.
This commit is contained in:
@@ -151,6 +151,11 @@ typedef struct
|
||||
#define PDC_MOUSE_WHEEL_LEFT 0x0080
|
||||
#define PDC_MOUSE_WHEEL_RIGHT 0x0100
|
||||
|
||||
/* Windows console code already provides MOUSE_MOVED */
|
||||
#if defined(MOUSE_MOVED)
|
||||
#undef MOUSE_MOVED
|
||||
#endif
|
||||
|
||||
#define A_BUTTON_CHANGED (Mouse_status.changes & 7)
|
||||
#define MOUSE_MOVED (Mouse_status.changes & PDC_MOUSE_MOVED)
|
||||
#define MOUSE_POS_REPORT (Mouse_status.changes & PDC_MOUSE_POSITION)
|
||||
|
Reference in New Issue
Block a user