MCPcopy Create free account
hub / github.com/AntiMicroX/antimicrox / updateSetDPadButtonNames

Method updateSetDPadButtonNames

src/inputdevice.cpp:1070–1081  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1068}
1069
1070void InputDevice::updateSetDPadButtonNames(int dpadIndex, int buttonIndex)
1071{
1072 JoyDPad *dpad = getActiveSetJoystick()->getJoyDPad(dpadIndex);
1073
1074 if (dpad != nullptr)
1075 {
1076 JoyDPadButton *button = dpad->getJoyButton(buttonIndex);
1077
1078 if (button != nullptr)
1079 setDPadButtonName(dpadIndex, buttonIndex, button->getButtonName());
1080 }
1081}
1082
1083void InputDevice::updateSetVDPadButtonNames(int vdpadIndex, int buttonIndex)
1084{

Callers

nothing calls this directly

Calls 3

getJoyDPadMethod · 0.80
getButtonNameMethod · 0.80
getJoyButtonMethod · 0.45

Tested by

no test coverage detected