Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Controller_data Struct Reference

#include <ECS_Components.h>

+ Collaboration diagram for Controller_data:

Public Member Functions

 Controller_data ()=default
 
 Controller_data (const Controller_data &)=default
 
Controller_dataoperator= (const Controller_data &)=default
 

Public Attributes

short controllerID = -1
 
bool isConnected = false
 
Vector leftStick
 
Vector rightStick
 
float leftTrigger = 0.f
 
float rightTrigger = 0.f
 
bool buttons [MAX_BUTTONS] = {false}
 
bool isVibrating = false
 
float vibrateStrength = 0.f
 

Static Public Attributes

static constexpr int MAX_BUTTONS = 16
 

Detailed Description

Definition at line 412 of file ECS_Components.h.

Constructor & Destructor Documentation

◆ Controller_data() [1/2]

Controller_data::Controller_data ( )
default

◆ Controller_data() [2/2]

Controller_data::Controller_data ( const Controller_data )
default

Member Function Documentation

◆ operator=()

Controller_data & Controller_data::operator= ( const Controller_data )
default

Member Data Documentation

◆ buttons

bool Controller_data::buttons[MAX_BUTTONS] = {false}

Definition at line 426 of file ECS_Components.h.

◆ controllerID

short Controller_data::controllerID = -1

◆ isConnected

bool Controller_data::isConnected = false

Definition at line 417 of file ECS_Components.h.

◆ isVibrating

bool Controller_data::isVibrating = false

Definition at line 429 of file ECS_Components.h.

◆ leftStick

Vector Controller_data::leftStick

Definition at line 420 of file ECS_Components.h.

◆ leftTrigger

float Controller_data::leftTrigger = 0.f

Definition at line 422 of file ECS_Components.h.

◆ MAX_BUTTONS

constexpr int Controller_data::MAX_BUTTONS = 16
staticconstexpr

Definition at line 414 of file ECS_Components.h.

Referenced by InputEventConsumeSystem::Process().

◆ rightStick

Vector Controller_data::rightStick

Definition at line 421 of file ECS_Components.h.

◆ rightTrigger

float Controller_data::rightTrigger = 0.f

Definition at line 423 of file ECS_Components.h.

◆ vibrateStrength

float Controller_data::vibrateStrength = 0.f

Definition at line 430 of file ECS_Components.h.


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