MCPcopy Create free account
hub / github.com/AmelieHeinrich/Termina / GetGamepadButtonName

Function GetGamepadButtonName

Sources/Termina/Input/InputSystem.cpp:434–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

432 }
433
434 static const char* GetGamepadButtonName(int32 button)
435 {
436 switch (button)
437 {
438 case 0: return "A";
439 case 1: return "B";
440 case 2: return "X";
441 case 3: return "Y";
442 case 4: return "LBumper";
443 case 5: return "RBumper";
444 case 6: return "Back";
445 case 7: return "Start";
446 case 8: return "Guide";
447 case 9: return "LThumb";
448 case 10: return "RThumb";
449 case 11: return "DUp";
450 case 12: return "DRight";
451 case 13: return "DDown";
452 case 14: return "DLeft";
453 default: return "?";
454 }
455 }
456
457 static const char* GetGamepadAxisName(int32 axis)
458 {

Callers 1

ShowDebugWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected