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

#include <ECS_Components.h>

Public Member Functions

void InitializeDefaults ()
 
 InputMapping_data ()=default
 
 InputMapping_data (const InputMapping_data &)=default
 
InputMapping_dataoperator= (const InputMapping_data &)=default
 

Public Attributes

std::unordered_map< std::string, SDL_ScancodekeyboardBindings
 
std::unordered_map< std::string, intgamepadBindings
 
float deadzone = 0.15f
 
float sensitivity = 1.0f
 

Detailed Description

Definition at line 480 of file ECS_Components.h.

Constructor & Destructor Documentation

◆ InputMapping_data() [1/2]

InputMapping_data::InputMapping_data ( )
default

◆ InputMapping_data() [2/2]

InputMapping_data::InputMapping_data ( const InputMapping_data )
default

Member Function Documentation

◆ InitializeDefaults()

void InputMapping_data::InitializeDefaults ( )
inline

Definition at line 489 of file ECS_Components.h.

References gamepadBindings, GetComponentTypeID_Static(), and keyboardBindings.

Referenced by PrefabFactory::InstantiateInputMapping().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator=()

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

Member Data Documentation

◆ deadzone

float InputMapping_data::deadzone = 0.15f

Definition at line 485 of file ECS_Components.h.

◆ gamepadBindings

std::unordered_map<std::string, int> InputMapping_data::gamepadBindings

Definition at line 484 of file ECS_Components.h.

Referenced by InitializeDefaults().

◆ keyboardBindings

std::unordered_map<std::string, SDL_Scancode> InputMapping_data::keyboardBindings

Definition at line 483 of file ECS_Components.h.

Referenced by InitializeDefaults().

◆ sensitivity

float InputMapping_data::sensitivity = 1.0f

Definition at line 486 of file ECS_Components.h.


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