MCPcopy Create free account
hub / github.com/dmadison/ArduinoXInput / getJoyFromEnum

Function getJoyFromEnum

src/XInput.cpp:161–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159static const XInputMap_Joystick Map_JoystickRight(10, 11, 12, 13);
160
161const XInputMap_Joystick * getJoyFromEnum(XInputControl ctrl) {
162 switch (ctrl) {
163 case(JOY_LEFT): return &Map_JoystickLeft;
164 case(JOY_RIGHT): return &Map_JoystickRight;
165 default: return nullptr;
166 }
167}
168
169// --------------------------------------------------------
170// XInput Rumble Maps |

Callers 6

setJoystickMethod · 0.85
setJoystickXMethod · 0.85
setJoystickYMethod · 0.85
setJoystickDirectMethod · 0.85
getJoystickXMethod · 0.85
getJoystickYMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected