From ab6e8778b6684196c919040d589b1ccdeb6e4daa Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 20 Sep 2004 08:17:20 +0000
Subject: [PATCH] Ignore dwEventFlags completely...

---
 src/conio/win32cio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/conio/win32cio.c b/src/conio/win32cio.c
index 69fc70dd32..73a1a4f03f 100644
--- a/src/conio/win32cio.c
+++ b/src/conio/win32cio.c
@@ -110,7 +110,7 @@ int win32_kbhit(void)
 				if(input.Event.MouseEvent.dwEventFlags==MOUSE_MOVED) {
 					ciomouse_gotevent(CIOLIB_MOUSE_MOVE,input.Event.MouseEvent.dwMousePosition.X+1,input.Event.MouseEvent.dwMousePosition.Y+1);
 				}
-				if(!input.Event.MouseEvent.dwEventFlags) {
+				if(last_state != input.Event.MouseEvent.dwButtonState) {
 					switch(input.Event.MouseEvent.dwButtonState ^ last_state) {
 						case FROM_LEFT_1ST_BUTTON_PRESSED:
 							if(input.Event.MouseEvent.dwButtonState & FROM_LEFT_1ST_BUTTON_PRESSED)
@@ -202,7 +202,7 @@ int win32_getch(void)
 						if(input.Event.MouseEvent.dwEventFlags==MOUSE_MOVED) {
 							ciomouse_gotevent(CIOLIB_MOUSE_MOVE,input.Event.MouseEvent.dwMousePosition.X+1,input.Event.MouseEvent.dwMousePosition.Y+1);
 						}
-						if(!input.Event.MouseEvent.dwEventFlags) {
+						if(last_state != input.Event.MouseEvent.dwButtonState) {
 							switch(input.Event.MouseEvent.dwButtonState ^ last_state) {
 								case FROM_LEFT_1ST_BUTTON_PRESSED:
 									if(input.Event.MouseEvent.dwButtonState & FROM_LEFT_1ST_BUTTON_PRESSED)
-- 
GitLab