src/video/ataricommon/SDL_ikbdevents.c
changeset 331 e9278438fb3b
parent 297 f6ffac90895c
child 769 b8d311d90021
--- a/src/video/ataricommon/SDL_ikbdevents.c	Wed Apr 03 21:45:25 2002 +0000
+++ b/src/video/ataricommon/SDL_ikbdevents.c	Thu Apr 04 18:06:33 2002 +0000
@@ -192,10 +192,10 @@
 			curbutton = SDL_AtariIkbd_mouseb & (1<<i);
 			prevbutton = atari_prevmouseb & (1<<i);
 
-			if (curbutton & !prevbutton) {
+			if (curbutton && !prevbutton) {
 				SDL_PrivateMouseButton(SDL_PRESSED, atari_GetButton(i), 0, 0);
 			}
-			if (!curbutton & prevbutton) {
+			if (!curbutton && prevbutton) {
 				SDL_PrivateMouseButton(SDL_RELEASED, atari_GetButton(i), 0, 0);
 			}
 		}