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

Method getTrigger

src/XInput.cpp:391–395  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389}
390
391uint8_t XInputController::getTrigger(XInputControl trigger) const {
392 const XInputMap_Trigger * triggerData = getTriggerFromEnum(trigger);
393 if (triggerData == nullptr) return 0; // Not a trigger
394 return tx[triggerData->index];
395}
396
397int16_t XInputController::getJoystickX(XInputControl joy) const {
398 const XInputMap_Joystick * joyData = getJoyFromEnum(joy);

Callers

nothing calls this directly

Calls 1

getTriggerFromEnumFunction · 0.85

Tested by

no test coverage detected