Mercurial > sdl-ios-xcode
diff src/video/ataricommon/SDL_xbiosevents.c @ 1310:a201a8c62522
Add flag to post mouse button events or not, and use defined function to post them
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Tue, 31 Jan 2006 21:33:35 +0000 |
parents | a8068adf156b |
children | c9b51268668f |
line wrap: on
line diff
--- a/src/video/ataricommon/SDL_xbiosevents.c Tue Jan 31 19:46:26 2006 +0000 +++ b/src/video/ataricommon/SDL_xbiosevents.c Tue Jan 31 21:33:35 2006 +0000 @@ -122,7 +122,7 @@ } } -void SDL_AtariXbios_PostMouseEvents(_THIS) +void SDL_AtariXbios_PostMouseEvents(_THIS, SDL_bool buttonEvents) { if (SDL_AtariXbios_enabled==0) { return; @@ -135,7 +135,7 @@ } /* Mouse button ? */ - if (SDL_AtariXbios_mouseb != atari_prevmouseb) { + if (buttonEvents && (SDL_AtariXbios_mouseb != atari_prevmouseb)) { int i; for (i=0;i<2;i++) {