Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed some minor compiler warnings.

  • Loading branch information
icculus committed Jul 20, 2012
1 parent 524d1ea commit 583d19f5f49fcd9d179a4906893edf33d82de065

File 4 of 4 in 583d19f

@@ -29,16 +29,19 @@

#define MAX_AXIS 16

#if SDL_VIDEO_DRIVER_X11_XINPUT2
static int xinput2_initialized = 0;

#if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
static int xinput2_multitouch_supported = 0;
/* Opcode returned XQueryExtension
#endif

/* Opcode returned XQueryExtension
* It will be used in event processing
* to know that the event came from
* this extension */
static int xinput2_opcode;


#if SDL_VIDEO_DRIVER_X11_XINPUT2
static void parse_valuators(const double *input_values,unsigned char *mask,int mask_len,
double *output_values,int output_values_len) {
int i = 0,z = 0;
@@ -237,12 +240,20 @@ X11_Xinput2SelectTouch(_THIS, SDL_Window *window) {

int
X11_Xinput2IsInitialized() {
#if SDL_VIDEO_DRIVER_X11_XINPUT2
return xinput2_initialized;
#else
return 0;
#endif
}

int
X11_Xinput2IsMutitouchSupported() {
#if SDL_VIDEO_DRIVER_X11_XINPUT2_SUPPORTS_MULTITOUCH
return xinput2_initialized && xinput2_multitouch_supported;
#else
return 0;
#endif
}

#endif /* SDL_VIDEO_DRIVER_X11 */

0 comments on commit 583d19f

Please sign in to comment.