Input: Bind F and K to left thumb and right thumb, respectively.

This commit is contained in:
DrChat 2017-08-08 16:06:22 -05:00
parent 2cf0b39bf5
commit fdef1e098d
1 changed files with 10 additions and 0 deletions

View File

@ -127,6 +127,11 @@ X_RESULT WinKeyInputDriver::GetState(uint32_t user_index,
}
}
if (IS_KEY_DOWN(0x46)) {
// F
buttons |= 0x0040; // XINPUT_GAMEPAD_LEFT_THUMB
}
// Right stick
if (IS_KEY_DOWN(0x26)) {
// Up
@ -162,6 +167,11 @@ X_RESULT WinKeyInputDriver::GetState(uint32_t user_index,
buttons |= 0x8000; // XINPUT_GAMEPAD_Y
}
if (IS_KEY_DOWN(0x4B)) {
// K
buttons |= 0x0080; // XINPUT_GAMEPAD_RIGHT_THUMB
}
if (IS_KEY_DOWN(0x51) || IS_KEY_DOWN(0x49)) {
// Q / I
left_trigger = 0xFF;