Skip to content

Commit

Permalink
*** empty log message ***
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 11, 2002
1 parent 2c0adb9 commit 950f6dc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/joystick/bsd/SDL_sysjoystick.c
Expand Up @@ -32,7 +32,6 @@ static char rcsid =
"@(#) $Id $"; "@(#) $Id $";
#endif #endif


#include <sys/types.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <unistd.h> #include <unistd.h>
Expand Down Expand Up @@ -242,8 +241,6 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy)
break; break;
case hid_input: case hid_input:
switch (HID_PAGE(hitem.usage)) { switch (HID_PAGE(hitem.usage)) {
case HUP_UNDEFINED:
break;
case HUP_GENERIC_DESKTOP: case HUP_GENERIC_DESKTOP:
switch (HID_USAGE(hitem.usage)) { switch (HID_USAGE(hitem.usage)) {
case HUG_X: case HUG_X:
Expand All @@ -264,6 +261,8 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy)
case HUP_BUTTON: case HUP_BUTTON:
joy->nbuttons++; joy->nbuttons++;
break; break;
default:
break;
} }
break; break;
default: default:
Expand Down Expand Up @@ -308,8 +307,6 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy)
switch (hitem.kind) { switch (hitem.kind) {
case hid_input: case hid_input:
switch (HID_PAGE(hitem.usage)) { switch (HID_PAGE(hitem.usage)) {
case HUP_UNDEFINED:
continue;
case HUP_GENERIC_DESKTOP: case HUP_GENERIC_DESKTOP:
switch (HID_USAGE(hitem.usage)) { switch (HID_USAGE(hitem.usage)) {
case HUG_X: case HUG_X:
Expand Down Expand Up @@ -357,6 +354,8 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy)
} }
nbutton++; nbutton++;
break; break;
default:
continue;
} }
break; break;
default: default:
Expand Down

0 comments on commit 950f6dc

Please sign in to comment.