Some winkey support for left/right triggers.

This commit is contained in:
gibbed 2016-06-20 17:48:40 -05:00
parent e7f5d3e7d4
commit 0e1c91681d
1 changed files with 10 additions and 0 deletions

View File

@ -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