Module xuser

Module xuser 

Source
Expand description

[microsoft.com] XUSER_*

Constants§

INDEX_ANY
[microsoft.com] XUSER_INDEX_ANY
Pass to get_keystroke to get Keystrokes for any/all connected gamepads rather than a specific gamepad.
(The gamepad which send the keystroke can be determined with Keystroke::user_index.)

MAX_COUNT
[microsoft.com] XUSER_MAX_COUNT (4) — The maximum number of unique gamepads/users supported by XInput.
All user indicies will be less than this (excluding the magic value, xuser::INDEX_ANY.)

Functions§

iter
Iterator over valid user indicies (0 .. xuser::MAX_COUNT)