Mercurial > sdl-ios-xcode
comparison src/joystick/linux/SDL_sysjoystick.c @ 3013:8cc00819c8d6
Reverted Bob's indent checkin
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 10 Jan 2009 21:50:26 +0000 |
parents | 8f4ed5ec2b06 |
children | db20dde98dd3 |
comparison
equal
deleted
inserted
replaced
3012:7e30c2dc7783 | 3013:8cc00819c8d6 |
---|---|
958 hat = hats->nthing; | 958 hat = hats->nthing; |
959 } | 959 } |
960 #endif /* USE_LOGICAL_JOYSTICKS */ | 960 #endif /* USE_LOGICAL_JOYSTICKS */ |
961 | 961 |
962 SDL_PrivateJoystickHat(stick, hat, | 962 SDL_PrivateJoystickHat(stick, hat, |
963 position_map[the_hat->axis[1]][the_hat-> | 963 position_map[the_hat-> |
964 axis[0]]); | 964 axis[1]][the_hat->axis[0]]); |
965 } | 965 } |
966 } | 966 } |
967 | 967 |
968 static __inline__ void | 968 static __inline__ void |
969 HandleBall(SDL_Joystick * stick, Uint8 ball, int axis, int value) | 969 HandleBall(SDL_Joystick * stick, Uint8 ball, int axis, int value) |
1090 case EV_KEY: | 1090 case EV_KEY: |
1091 if (code >= BTN_MISC) { | 1091 if (code >= BTN_MISC) { |
1092 code -= BTN_MISC; | 1092 code -= BTN_MISC; |
1093 #ifndef NO_LOGICAL_JOYSTICKS | 1093 #ifndef NO_LOGICAL_JOYSTICKS |
1094 if (!LogicalJoystickButton(joystick, | 1094 if (!LogicalJoystickButton(joystick, |
1095 joystick->hwdata-> | 1095 joystick-> |
1096 key_map[code], | 1096 hwdata->key_map[code], |
1097 events[i].value)) | 1097 events[i].value)) |
1098 #endif | 1098 #endif |
1099 SDL_PrivateJoystickButton(joystick, | 1099 SDL_PrivateJoystickButton(joystick, |
1100 joystick->hwdata-> | 1100 joystick-> |
1101 key_map[code], | 1101 hwdata->key_map[code], |
1102 events[i].value); | 1102 events[i].value); |
1103 } | 1103 } |
1104 break; | 1104 break; |
1105 case EV_ABS: | 1105 case EV_ABS: |
1106 switch (code) { | 1106 switch (code) { |
1122 if (!LogicalJoystickAxis(joystick, | 1122 if (!LogicalJoystickAxis(joystick, |
1123 joystick->hwdata->abs_map[code], | 1123 joystick->hwdata->abs_map[code], |
1124 events[i].value)) | 1124 events[i].value)) |
1125 #endif | 1125 #endif |
1126 SDL_PrivateJoystickAxis(joystick, | 1126 SDL_PrivateJoystickAxis(joystick, |
1127 joystick->hwdata-> | 1127 joystick-> |
1128 abs_map[code], | 1128 hwdata->abs_map[code], |
1129 events[i].value); | 1129 events[i].value); |
1130 break; | 1130 break; |
1131 } | 1131 } |
1132 break; | 1132 break; |
1133 case EV_REL: | 1133 case EV_REL: |