MCPcopy Create free account
hub / github.com/alpha-liu-01/SpeedyNote / getLogicalButtonDescriptions

Method getLogicalButtonDescriptions

source/ControllerMappingDialog.cpp:123–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121}
122
123QMap<QString, QString> ControllerMappingDialog::getLogicalButtonDescriptions() const {
124 QMap<QString, QString> descriptions;
125 descriptions["LEFTSHOULDER"] = tr("SL Button (Side Left)");
126 descriptions["RIGHTSHOULDER"] = tr("SR Button (Side Right)");
127 descriptions["PADDLE2"] = tr("L Button (Left Shoulder)");
128 descriptions["PADDLE4"] = tr("ZL Button (Left Trigger)");
129
130 descriptions["Y"] = tr("Up Arrow (D-Pad Up)");
131 descriptions["A"] = tr("Right Arrow (D-Pad Right)");
132 descriptions["B"] = tr("Down Arrow (D-Pad Down)");
133 descriptions["X"] = tr("Left Arrow (D-Pad Left)");
134 descriptions["LEFTSTICK"] = tr("Analog Stick Press");
135 descriptions["START"] = tr("Minus Button (-)");
136 descriptions["GUIDE"] = tr("Screenshot Button");
137 // descriptions["PREVIOUS_PAGE"] = tr("Previous Page");
138 // descriptions["NEXT_PAGE"] = tr("Next Page");
139 return descriptions;
140}
141
142void ControllerMappingDialog::loadCurrentMappings() {
143 QMap<QString, int> currentMappings = controller->getAllPhysicalMappings();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected