MCPcopy Create free account
hub / github.com/MaaXYZ/MaaFramework / convert_special

Method convert_special

source/MaaGamepadControlUnit/Input/GamepadState.cpp:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150uint8_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
167void Ds4GamepadState::update_dpad(int button, bool pressed)
168{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected