forked from Dniel97/segatools
idac: mapped left and right thumbstick to dpad left and right
This commit is contained in:
parent
49f729c501
commit
d5a551482b
2
dist/idac/segatools.ini
vendored
2
dist/idac/segatools.ini
vendored
@ -89,6 +89,8 @@ coin=0x33
|
|||||||
mode=xinput
|
mode=xinput
|
||||||
|
|
||||||
[xinput]
|
[xinput]
|
||||||
|
; Left and right thumbsticks are mapped to left and right dpad buttons.
|
||||||
|
; Press both thumbsticks to trigger "Time Up" and exit the course.
|
||||||
; Automatically reset the simulated shifter to Neutral when XInput Start is
|
; Automatically reset the simulated shifter to Neutral when XInput Start is
|
||||||
; pressed (e.g. when navigating menus between races).
|
; pressed (e.g. when navigating menus between races).
|
||||||
autoNeutral=1
|
autoNeutral=1
|
||||||
|
@ -99,11 +99,11 @@ static void idac_xi_get_gamebtns(uint8_t *gamebtn_out) {
|
|||||||
gamebtn |= IDAC_IO_GAMEBTN_DOWN;
|
gamebtn |= IDAC_IO_GAMEBTN_DOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xb & XINPUT_GAMEPAD_DPAD_LEFT) {
|
if (xb & (XINPUT_GAMEPAD_DPAD_LEFT | XINPUT_GAMEPAD_LEFT_THUMB)) {
|
||||||
gamebtn |= IDAC_IO_GAMEBTN_LEFT;
|
gamebtn |= IDAC_IO_GAMEBTN_LEFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xb & XINPUT_GAMEPAD_DPAD_RIGHT) {
|
if (xb & (XINPUT_GAMEPAD_DPAD_RIGHT | XINPUT_GAMEPAD_RIGHT_THUMB)) {
|
||||||
gamebtn |= IDAC_IO_GAMEBTN_RIGHT;
|
gamebtn |= IDAC_IO_GAMEBTN_RIGHT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user