*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Tue, 11 Jun 2002 20:11:30 +0000
changeset 405b5de7389a0a5
parent 404 cbb346aca05d
child 406 9916da315b0d
*** empty log message ***
src/joystick/bsd/SDL_sysjoystick.c
     1.1 --- a/src/joystick/bsd/SDL_sysjoystick.c	Tue Jun 11 20:06:42 2002 +0000
     1.2 +++ b/src/joystick/bsd/SDL_sysjoystick.c	Tue Jun 11 20:11:30 2002 +0000
     1.3 @@ -32,7 +32,6 @@
     1.4   "@(#) $Id $";
     1.5  #endif
     1.6  
     1.7 -#include <sys/types.h>
     1.8  #include <stdio.h>
     1.9  #include <stdlib.h>
    1.10  #include <unistd.h>
    1.11 @@ -242,8 +241,6 @@
    1.12  			break;
    1.13  		case hid_input:
    1.14  			switch (HID_PAGE(hitem.usage)) {
    1.15 -			case HUP_UNDEFINED:
    1.16 -				break;
    1.17  			case HUP_GENERIC_DESKTOP:
    1.18  				switch (HID_USAGE(hitem.usage)) {
    1.19  				case HUG_X:
    1.20 @@ -264,6 +261,8 @@
    1.21  			case HUP_BUTTON:
    1.22  				joy->nbuttons++;
    1.23  				break;
    1.24 +			default:
    1.25 +				break;
    1.26  			}
    1.27  			break;
    1.28  		default:
    1.29 @@ -308,8 +307,6 @@
    1.30  		switch (hitem.kind) {
    1.31  		case hid_input:
    1.32  			switch (HID_PAGE(hitem.usage)) {
    1.33 -			case HUP_UNDEFINED:
    1.34 -				continue;
    1.35  			case HUP_GENERIC_DESKTOP:
    1.36  				switch (HID_USAGE(hitem.usage)) {
    1.37  				case HUG_X:
    1.38 @@ -357,6 +354,8 @@
    1.39  				}
    1.40  				nbutton++;
    1.41  				break;
    1.42 +			default:
    1.43 +				continue;
    1.44  			}
    1.45  			break;
    1.46  		default: