Commit c37f7658 authored by Sam Lantinga's avatar Sam Lantinga

*** empty log message ***

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40406
parent 3ae1a7a5
...@@ -32,7 +32,6 @@ static char rcsid = ...@@ -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>
...@@ -242,8 +241,6 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) ...@@ -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:
...@@ -264,6 +261,8 @@ SDL_SYS_JoystickOpen(SDL_Joystick *joy) ...@@ -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:
...@@ -308,8 +307,6 @@ SDL_SYS_JoystickUpdate(SDL_Joystick *joy) ...@@ -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:
...@@ -357,6 +354,8 @@ scaleaxe: ...@@ -357,6 +354,8 @@ scaleaxe:
} }
nbutton++; nbutton++;
break; break;
default:
continue;
} }
break; break;
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment