True if the packed binding belongs in controls.cfg (keyboard scancodes or mouse buttons). Joystick-class entries (STICK / STICK_AXIS / STICK_POV) are persisted via GamepadConfig instead.
| 29 | // or mouse buttons). Joystick-class entries (STICK / STICK_AXIS / |
| 30 | // STICK_POV) are persisted via GamepadConfig instead. |
| 31 | bool IsKbmCode(int packedCode) |
| 32 | { |
| 33 | if (packedCode < 0) |
| 34 | return false; |
| 35 | int dev = packedCode & INPUT_DEVICE_MASK; |
| 36 | return dev == INPUT_DEVICE_KEYBOARD || dev == INPUT_DEVICE_MOUSE; |
| 37 | } |
| 38 | } // namespace |
| 39 | |
| 40 | void ControlsConfig::LoadDefaults() |
no outgoing calls
no test coverage detected