Commit 5028f30
authored
Revert gamepad analog accel/brake back to face buttons (#19)
PR #17 bundled a gamepad change alongside the touch controls: it enabled
analog stick-Y throttle for every joystick (the original only did so for the
SideWinder Force Feedback Pro whitelist), which put accelerate/brake on the
same thumbstick as steering. On a kart racer that couples the two — the
stick's circular gate means you cannot floor the throttle and steer fully at
the same time — so restore accelerate/brake to face buttons.
Reverts the four analog-throttle chunks from #17:
- PlayerControls::DetectAnalogDevice no longer force-enables analog throttle
for any joystick (SideWinder whitelist only, as before).
- PlayerControls::UpdateThrottle reads the throttle axis from the throttle
slot again, not the steer slot.
- ControlConfigScreen no longer greys out or axis-labels the accel/brake rows
for gamepads, so they are bindable buttons again.
All four functions now byte-match the decomp. Touch controls are unaffected
(separate hooks in the same files). The versus stick-throttle fix (442792a)
is subsumed: that bug only existed because of the analog-for-all-gamepads
behavior being removed here.1 parent eded9b3 commit 5028f30
2 files changed
Lines changed: 1 addition & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | 259 | | |
267 | 260 | | |
268 | 261 | | |
| |||
285 | 278 | | |
286 | 279 | | |
287 | 280 | | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | 281 | | |
301 | 282 | | |
302 | 283 | | |
| |||
311 | 292 | | |
312 | 293 | | |
313 | 294 | | |
314 | | - | |
315 | | - | |
316 | 295 | | |
317 | 296 | | |
318 | 297 | | |
319 | 298 | | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | 299 | | |
326 | 300 | | |
327 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
| 239 | + | |
245 | 240 | | |
246 | 241 | | |
247 | 242 | | |
| |||
534 | 529 | | |
535 | 530 | | |
536 | 531 | | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | 532 | | |
552 | 533 | | |
553 | 534 | | |
| |||
0 commit comments