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

#include <InputDevice.h>

Public Member Functions

 InputDeviceSlot ()=default
 
 InputDeviceSlot (InputDeviceType t, int idx, const std::string &name)
 
bool IsAssigned () const
 
bool IsAvailable () const
 

Public Attributes

InputDeviceType type = InputDeviceType::None
 
int deviceIndex = -1
 
short assignedPlayerID = -1
 
bool isConnected = false
 
std::string deviceName
 
std::shared_ptr< InputProfileprofile
 

Detailed Description

Definition at line 125 of file InputDevice.h.

Constructor & Destructor Documentation

◆ InputDeviceSlot() [1/2]

InputDeviceSlot::InputDeviceSlot ( )
default

◆ InputDeviceSlot() [2/2]

InputDeviceSlot::InputDeviceSlot ( InputDeviceType  t,
int  idx,
const std::string &  name 
)
inline

Definition at line 135 of file InputDevice.h.

Member Function Documentation

◆ IsAssigned()

bool InputDeviceSlot::IsAssigned ( ) const
inline

Definition at line 138 of file InputDevice.h.

References assignedPlayerID.

Referenced by IsAvailable().

+ Here is the caller graph for this function:

◆ IsAvailable()

bool InputDeviceSlot::IsAvailable ( ) const
inline

Definition at line 139 of file InputDevice.h.

References IsAssigned(), and isConnected.

+ Here is the call graph for this function:

Member Data Documentation

◆ assignedPlayerID

short InputDeviceSlot::assignedPlayerID = -1

Definition at line 128 of file InputDevice.h.

Referenced by InputDeviceManager::AssignDeviceToPlayer(), and IsAssigned().

◆ deviceIndex

int InputDeviceSlot::deviceIndex = -1

Definition at line 127 of file InputDevice.h.

◆ deviceName

std::string InputDeviceSlot::deviceName

Definition at line 130 of file InputDevice.h.

Referenced by InputDeviceManager::AutoAssignDevice().

◆ isConnected

bool InputDeviceSlot::isConnected = false

Definition at line 129 of file InputDevice.h.

Referenced by IsAvailable().

◆ profile

std::shared_ptr<InputProfile> InputDeviceSlot::profile

Definition at line 131 of file InputDevice.h.

◆ type

InputDeviceType InputDeviceSlot::type = InputDeviceType::None

Definition at line 126 of file InputDevice.h.


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