QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
GamepadCodes.h File Reference

Codes of the gamepads, of their buttons and of their axes, independent from GLFW. More...

#include <cstddef>
#include <cstdint>

Go to the source code of this file.

Namespaces

namespace  Quasar
 Contains all the engine code.

Enumerations

enum class  Quasar::GamepadId : std::uint8_t
 Identifies a connected gamepad, from 0 to MaxGamepads - 1. More...
enum class  Quasar::GamepadButton : std::uint8_t {
  Quasar::A = 0 , Quasar::B = 1 , Quasar::X = 2 , Quasar::Y = 3 ,
  Quasar::LeftBumper = 4 , Quasar::RightBumper = 5 , Quasar::Back = 6 , Quasar::Start = 7 ,
  Quasar::Guide = 8 , Quasar::LeftThumb = 9 , Quasar::RightThumb = 10 , Quasar::DPadUp = 11 ,
  Quasar::DPadRight = 12 , Quasar::DPadDown = 13 , Quasar::DPadLeft = 14
}
 Button of a gamepad, at the position of the buttons of an Xbox controller. More...
enum class  Quasar::GamepadAxis : std::uint8_t {
  Quasar::LeftX = 0 , Quasar::LeftY = 1 , Quasar::RightX = 2 , Quasar::RightY = 3 ,
  Quasar::LeftTrigger = 4 , Quasar::RightTrigger = 5
}
 Axis of a gamepad. More...

Variables

constexpr std::size_t Quasar::MaxGamepads = 16
 Number of gamepads that can be connected at the same time.
constexpr std::size_t Quasar::GamepadButtonCount = 15
 Number of buttons of a gamepad.
constexpr std::size_t Quasar::GamepadAxisCount = 6
 Number of axes of a gamepad.

Detailed Description

Codes of the gamepads, of their buttons and of their axes, independent from GLFW.

Author
Kurogenshi
Date
2026-11-06