src/video/x11/SDL_x11xinput2.c
changeset 7191 75360622e65f
parent 6951 7833f01322b3
child 7677 871d43c6968a
     1.1 --- a/src/video/x11/SDL_x11xinput2.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/src/video/x11/SDL_x11xinput2.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -39,7 +39,7 @@
     1.4  /* Opcode returned XQueryExtension
     1.5   * It will be used in event processing
     1.6   * to know that the event came from
     1.7 - * this extension */ 
     1.8 + * this extension */
     1.9  static int xinput2_opcode;
    1.10  
    1.11  static void parse_valuators(const double *input_values,unsigned char *mask,int mask_len,
    1.12 @@ -61,7 +61,7 @@
    1.13  }
    1.14  #endif /* SDL_VIDEO_DRIVER_X11_XINPUT2 */
    1.15  
    1.16 -void 
    1.17 +void
    1.18  X11_InitXinput2(_THIS)
    1.19  {
    1.20  #if SDL_VIDEO_DRIVER_X11_XINPUT2
    1.21 @@ -78,8 +78,8 @@
    1.22      /*
    1.23      * Initialize XInput 2
    1.24      * According to http://who-t.blogspot.com/2009/05/xi2-recipes-part-1.html its better
    1.25 -    * to inform Xserver what version of Xinput we support.The server will store the version we support. 
    1.26 -    * "As XI2 progresses it becomes important that you use this call as the server may treat the client 
    1.27 +    * to inform Xserver what version of Xinput we support.The server will store the version we support.
    1.28 +    * "As XI2 progresses it becomes important that you use this call as the server may treat the client
    1.29      * differently depending on the supported version".
    1.30      *
    1.31      * FIXME:event and err are not needed but if not passed XQueryExtension returns SegmentationFault
    1.32 @@ -114,14 +114,14 @@
    1.33      eventmask.mask = mask;
    1.34  
    1.35      XISetMask(mask, XI_RawMotion);
    1.36 -         
    1.37 +
    1.38      if (XISelectEvents(data->display,DefaultRootWindow(data->display),&eventmask,1) != Success) {
    1.39 -        return;     
    1.40 +        return;
    1.41      }
    1.42  #endif
    1.43  }
    1.44  
    1.45 -int 
    1.46 +int
    1.47  X11_HandleXinput2Event(SDL_VideoData *videodata,XGenericEventCookie *cookie)
    1.48  {
    1.49  #if SDL_VIDEO_DRIVER_X11_XINPUT2
    1.50 @@ -172,7 +172,7 @@
    1.51      return 0;
    1.52  }
    1.53  
    1.54 -void 
    1.55 +void
    1.56  X11_InitXinput2Multitouch(_THIS)
    1.57  {
    1.58  #if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
    1.59 @@ -202,7 +202,7 @@
    1.60  #endif
    1.61  }
    1.62  
    1.63 -void 
    1.64 +void
    1.65  X11_Xinput2SelectTouch(_THIS, SDL_Window *window)
    1.66  {
    1.67  #if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
    1.68 @@ -222,13 +222,13 @@
    1.69      XISetMask(mask, XI_TouchBegin);
    1.70      XISetMask(mask, XI_TouchUpdate);
    1.71      XISetMask(mask, XI_TouchEnd);
    1.72 -         
    1.73 +
    1.74      XISelectEvents(data->display,window_data->xwindow,&eventmask,1);
    1.75  #endif
    1.76  }
    1.77  
    1.78  
    1.79 -int 
    1.80 +int
    1.81  X11_Xinput2IsInitialized()
    1.82  {
    1.83  #if SDL_VIDEO_DRIVER_X11_XINPUT2