Mercurial > sdl-ios-xcode
diff src/video/photon/SDL_ph_events.c @ 266:c6abdda2f666
Added QNX cleanups by Mike Gorchak (thanks!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 18 Jan 2002 18:14:03 +0000 |
parents | e8157fcb3114 |
children | 3d8b6b9f1e18 |
line wrap: on
line diff
--- a/src/video/photon/SDL_ph_events.c Fri Jan 18 17:14:16 2002 +0000 +++ b/src/video/photon/SDL_ph_events.c Fri Jan 18 18:14:03 2002 +0000 @@ -55,9 +55,10 @@ (idea shamelessly lifted from GII -- thanks guys! :) */ +/* static int ph_KeyRepeat(_THIS, PhKeyEvent_t* keyevent) { - PhEvent_t* peekevent; +// PhEvent_t* peekevent; PhKeyEvent_t* keyEvent; int repeated; @@ -84,11 +85,13 @@ } break; - default: /* no events pending */ + default: // no events pending } return(repeated); } +*/ + /* Note: The X server buffers and accumulates mouse motion events, so the motion event generated by the warp may not appear exactly as we expect it to. We work around this (and improve performance) by only @@ -118,7 +121,7 @@ (xevent->xmotion.x > (w-MOUSE_FUDGE_FACTOR)) || (xevent->xmotion.y < MOUSE_FUDGE_FACTOR) || (xevent->xmotion.y > (h-MOUSE_FUDGE_FACTOR)) ) { - /* Get the events that have accumulated */ + // Get the events that have accumulated /* while ( XCheckTypedEvent(SDL_Display, MotionNotify, xevent) ) { deltax = xevent->xmotion.x - mouse_last.x; deltay = xevent->xmotion.y - mouse_last.y; @@ -161,6 +164,7 @@ /* Control which motion flags the window has set, a flags value of -1 sets * MOTION_BUTTON and MOTION_NOBUTTON */ + static void set_motion_sensitivity(_THIS, unsigned int flags) { int rid, fields = Ph_EV_PTR_MOTION_BUTTON | Ph_EV_PTR_MOTION_NOBUTTON;