diff options
-rw-r--r-- | src/windows.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/windows.c b/src/windows.c index 4dd0f9ad..b6b5311e 100644 --- a/src/windows.c +++ b/src/windows.c @@ -107,7 +107,12 @@ gui_init(void) initscr(); raw(); keypad(stdscr, TRUE); + +#ifdef PLATFORM_CYGWIN + mousemask(BUTTON5_PRESSED | BUTTON4_PRESSED, NULL); +#else mousemask(BUTTON2_PRESSED | BUTTON4_PRESSED, NULL); +#endif mouseinterval(5); win_load_colours(); @@ -1817,7 +1822,12 @@ _win_handle_page(const int * const ch) if (*ch == KEY_MOUSE) { if (getmouse(&mouse_event) == OK) { + +#ifdef PLATFORM_CYGWIN + if (mouse_event.bstate & BUTTON5_PRESSED) { // mouse wheel down +#else if (mouse_event.bstate & BUTTON2_PRESSED) { // mouse wheel down +#endif *page_start += 4; // only got half a screen, show full screen |