| 194 | } |
| 195 | |
| 196 | static bool QueryJoystickButtonToDo(Input& in, int index, bool reset, bool checkFocus) |
| 197 | { |
| 198 | if (checkFocus && in.gameFocusLost > 0) |
| 199 | return false; |
| 200 | if (index < 0) |
| 201 | return false; |
| 202 | bool ret = in.gamepad.stickButtonsToDo[index]; |
| 203 | if (reset) |
| 204 | in.gamepad.stickButtonsToDo[index] = false; |
| 205 | return ret; |
| 206 | } |
| 207 | |
| 208 | // Modifier check: a v1 binding can carry an optional held input in the |
| 209 | // parallel userKeysModifiers[] array. If set, the modifier must be |
no outgoing calls
no test coverage detected