| 455 | } |
| 456 | |
| 457 | static const char* GetGamepadAxisName(int32 axis) |
| 458 | { |
| 459 | switch (axis) |
| 460 | { |
| 461 | case 0: return "LeftX"; |
| 462 | case 1: return "LeftY"; |
| 463 | case 2: return "RightX"; |
| 464 | case 3: return "RightY"; |
| 465 | case 4: return "LTrigger"; |
| 466 | case 5: return "RTrigger"; |
| 467 | default: return "?"; |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | void InputSystem::ShowDebugWindow(bool* open) |
| 472 | { |