Skip to content
Permalink
Browse files

*** empty log message ***

  • Loading branch information
slouken committed Jun 11, 2002
1 parent 2c0adb9 commit 950f6dc5a2c3aa86c10d67cba5d6d92254385e93
Showing with 4 additions and 5 deletions.
  1. +4 −5 src/joystick/bsd/SDL_sysjoystick.c
@@ -32,7 +32,6 @@ static char rcsid =
"@(#) $Id $";
#endif

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

0 comments on commit 950f6dc

Please sign in to comment.