Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Date: Thu, 04 Apr 2002 13:27:36 GMT+1
From: Patrice Mandin <pmandin@caramail.com>
Subject: [SDL][PATCH] Atari mouse patch

Just a patch to correct a studid bug where Mouse button
events where not generated when pressing first button.
  • Loading branch information
slouken committed Apr 4, 2002
1 parent 35a6c91 commit 92ba4d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/video/ataricommon/SDL_ikbdevents.c
Expand Up @@ -192,10 +192,10 @@ void AtariIkbd_PumpEvents(_THIS)
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);
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/video/ataricommon/SDL_xbiosevents.c
Expand Up @@ -126,10 +126,10 @@ void SDL_AtariXbios_PostMouseEvents(_THIS)
curbutton = SDL_AtariXbios_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);
}
}
Expand Down

0 comments on commit 92ba4d5

Please sign in to comment.