Some winkey support for left/right triggers.
This commit is contained in:
parent
e7f5d3e7d4
commit
0e1c91681d
|
@ -162,6 +162,16 @@ X_RESULT WinKeyInputDriver::GetState(uint32_t user_index,
|
||||||
buttons |= 0x8000; // XINPUT_GAMEPAD_Y
|
buttons |= 0x8000; // XINPUT_GAMEPAD_Y
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (IS_KEY_DOWN(0x51) || IS_KEY_DOWN(0x49)) {
|
||||||
|
// Q / I
|
||||||
|
left_trigger = 0xFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (IS_KEY_DOWN(0x45) || IS_KEY_DOWN(0x4F)) {
|
||||||
|
// E / O
|
||||||
|
right_trigger = 0xFF;
|
||||||
|
}
|
||||||
|
|
||||||
if (IS_KEY_DOWN(0x5A)) {
|
if (IS_KEY_DOWN(0x5A)) {
|
||||||
// Z
|
// Z
|
||||||
buttons |= 0x0020; // XINPUT_GAMEPAD_BACK
|
buttons |= 0x0020; // XINPUT_GAMEPAD_BACK
|
||||||
|
|
Loading…
Reference in New Issue