| 148 | } |
| 149 | |
| 150 | uint8_t Ds4GamepadState::convert_special(int button) |
| 151 | { |
| 152 | uint8_t result = 0; |
| 153 | |
| 154 | if (button & XBOX_GUIDE) { |
| 155 | result |= DS4_SPECIAL_PS; |
| 156 | } |
| 157 | if (button & MaaGamepadButton_PS) { |
| 158 | result |= DS4_SPECIAL_PS; |
| 159 | } |
| 160 | if (button & MaaGamepadButton_TOUCHPAD) { |
| 161 | result |= DS4_SPECIAL_TOUCHPAD; |
| 162 | } |
| 163 | |
| 164 | return result; |
| 165 | } |
| 166 | |
| 167 | void Ds4GamepadState::update_dpad(int button, bool pressed) |
| 168 | { |
nothing calls this directly
no outgoing calls
no test coverage detected