e3073f3c9e
This removes the user_index == 0 requirement from the InputSystem code, and updates WinKeyInputDriver to use the first non-connected user index if it can. Eg. if you had 2 XInput controllers plugged in, those two will take up user index 0 and 1, and keyboard will take user index 2. If all four indexes are taken up already, the WinKey driver will be disabled. (This is done by passing already-setup drivers to each drivers Setup function: since WinKey is the last to be setup, this'll let it query the XInput driver and find which user_index it should handle) |
||
---|---|---|
.. | ||
nop | ||
winkey | ||
xinput | ||
hid_demo.cc | ||
hid_flags.cc | ||
hid_flags.h | ||
input.h | ||
input_driver.cc | ||
input_driver.h | ||
input_system.cc | ||
input_system.h | ||
premake5.lua |