src/video/photon/SDL_ph_events.c
changeset 266 c6abdda2f666
parent 252 e8157fcb3114
child 283 3d8b6b9f1e18
     1.1 --- a/src/video/photon/SDL_ph_events.c	Fri Jan 18 17:14:16 2002 +0000
     1.2 +++ b/src/video/photon/SDL_ph_events.c	Fri Jan 18 18:14:03 2002 +0000
     1.3 @@ -55,9 +55,10 @@
     1.4     (idea shamelessly lifted from GII -- thanks guys! :)
     1.5   */
     1.6  
     1.7 +/*
     1.8  static int ph_KeyRepeat(_THIS, PhKeyEvent_t* keyevent)
     1.9  {
    1.10 -	PhEvent_t* peekevent;
    1.11 +//	PhEvent_t* peekevent;
    1.12  	PhKeyEvent_t* keyEvent;
    1.13  	int repeated;
    1.14  
    1.15 @@ -84,11 +85,13 @@
    1.16  		}
    1.17  		break;
    1.18  
    1.19 -		default: /* no events pending */
    1.20 +		default: // no events pending
    1.21  	}
    1.22  	return(repeated);
    1.23  }
    1.24  
    1.25 +*/
    1.26 +
    1.27  /* Note:  The X server buffers and accumulates mouse motion events, so
    1.28     the motion event generated by the warp may not appear exactly as we
    1.29     expect it to.  We work around this (and improve performance) by only
    1.30 @@ -118,7 +121,7 @@
    1.31  	     (xevent->xmotion.x > (w-MOUSE_FUDGE_FACTOR)) ||
    1.32  	     (xevent->xmotion.y < MOUSE_FUDGE_FACTOR) ||
    1.33  	     (xevent->xmotion.y > (h-MOUSE_FUDGE_FACTOR)) ) {
    1.34 -		/* Get the events that have accumulated */
    1.35 +		// Get the events that have accumulated
    1.36  /*		while ( XCheckTypedEvent(SDL_Display, MotionNotify, xevent) ) {
    1.37  			deltax = xevent->xmotion.x - mouse_last.x;
    1.38  			deltay = xevent->xmotion.y - mouse_last.y;
    1.39 @@ -161,6 +164,7 @@
    1.40  
    1.41  /* Control which motion flags the window has set, a flags value of -1 sets
    1.42   * MOTION_BUTTON and MOTION_NOBUTTON */
    1.43 +
    1.44  static void set_motion_sensitivity(_THIS, unsigned int flags)
    1.45  {
    1.46  	int rid, fields = Ph_EV_PTR_MOTION_BUTTON | Ph_EV_PTR_MOTION_NOBUTTON;