libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Types | Public Attributes | List of all members
donut::events::ControllerAxisEventBase Struct Reference

Controller axis Event base. More...

#include <donut/events/Event.hpp>

Inheritance diagram for donut::events::ControllerAxisEventBase:
donut::events::ControllerEventBase donut::events::InputEventBase donut::events::EventBase donut::events::ControllerAxisMovedEvent

Public Types

enum class  ControllerAxis : std::uint8_t {
  LEFT_STICK_X = 0 , LEFT_STICK_Y = 1 , RIGHT_STICK_X = 2 , RIGHT_STICK_Y = 3 ,
  LEFT_TRIGGER = 4 , RIGHT_TRIGGER = 5 , INVALID = 255
}
 Controller axis enumeration. More...
 

Public Attributes

ControllerAxis axis
 Physical controller axis. More...
 
i16 axisValue
 Current axis value in the range [-32768, 32767]. More...
 
- Public Attributes inherited from donut::events::ControllerEventBase
std::int32_t controllerId
 Unique identifier of the controller instance. More...
 
- Public Attributes inherited from donut::events::InputEventBase
std::uint32_t windowId
 Unique identifier of the window that this event belongs to, if any. More...
 

Detailed Description

Controller axis Event base.

Member Enumeration Documentation

◆ ControllerAxis

Controller axis enumeration.

Enumerator
LEFT_STICK_X 

Horizontal movement of the left analog stick.

LEFT_STICK_Y 

Vertical movement of the left analog stick.

RIGHT_STICK_X 

Horizontal movement of the right analog stick.

RIGHT_STICK_Y 

Vertical movement of the right analog stick.

LEFT_TRIGGER 

Movement of the left trigger.

RIGHT_TRIGGER 

Movement of the right trigger.

INVALID 

Invalid axis.

Member Data Documentation

◆ axis

ControllerAxis donut::events::ControllerAxisEventBase::axis

Physical controller axis.

◆ axisValue

i16 donut::events::ControllerAxisEventBase::axisValue

Current axis value in the range [-32768, 32767].


The documentation for this struct was generated from the following file: