Brunot
Loading...
Searching...
No Matches
controllerInputTracker Struct Reference

#include <controllerInputTracker.h>

Collaboration diagram for controllerInputTracker:
[legend]

Public Member Functions

 controllerInputTracker ()=default
 controllerInputTracker (const controllerInputTracker &other)
 controllerInputTracker (controllerInputTracker &&other) noexcept=default
controllerInputTrackeroperator= (const controllerInputTracker &other)
controllerInputTrackeroperator= (controllerInputTracker &&other) noexcept=default
 ~controllerInputTracker ()=default
auto initialize () -> void
 Fills out the two arrays using information from Controllers.
auto initialize (const std::unordered_map< int, std::string > &holdButtonMap, const std::unordered_map< int, std::string > &tapButtonMap, const std::unordered_map< int, std::pair< std::string, std::string > > &sticksMap) -> void
 Fills out the two arrays using information from Controllers. Called before Input exists as a system, so it needs to get the information directly instead of through Engine::GetSystem<sys::input>()->...
auto clear () -> void
 Clears out the information for the buttons and sticks. Typically used when a controller disconnects and we want to wipe their info.

Public Attributes

std::array< std::unique_ptr< ControllerButton >, 15 > controllerButtons
 Array representing all the buttons on a glfw Gamepad.
std::array< ControllerStick, 6 > controllerSticks

Constructor & Destructor Documentation

◆ controllerInputTracker() [1/3]

controllerInputTracker::controllerInputTracker ( )
default
Here is the call graph for this function:
Here is the caller graph for this function:

◆ controllerInputTracker() [2/3]

controllerInputTracker::controllerInputTracker ( const controllerInputTracker & other)
Here is the call graph for this function:

◆ controllerInputTracker() [3/3]

controllerInputTracker::controllerInputTracker ( controllerInputTracker && other)
defaultnoexcept
Here is the call graph for this function:

◆ ~controllerInputTracker()

controllerInputTracker::~controllerInputTracker ( )
default

Member Function Documentation

◆ clear()

auto controllerInputTracker::clear ( ) ->void

Clears out the information for the buttons and sticks. Typically used when a controller disconnects and we want to wipe their info.

◆ initialize() [1/2]

auto controllerInputTracker::initialize ( ) ->void

Fills out the two arrays using information from Controllers.

Here is the call graph for this function:

◆ initialize() [2/2]

auto controllerInputTracker::initialize ( const std::unordered_map< int, std::string > & holdButtonMap,
const std::unordered_map< int, std::string > & tapButtonMap,
const std::unordered_map< int, std::pair< std::string, std::string > > & sticksMap )->void

Fills out the two arrays using information from Controllers. Called before Input exists as a system, so it needs to get the information directly instead of through Engine::GetSystem<sys::input>()->...

◆ operator=() [1/2]

controllerInputTracker & controllerInputTracker::operator= ( const controllerInputTracker & other)
Here is the call graph for this function:

◆ operator=() [2/2]

controllerInputTracker & controllerInputTracker::operator= ( controllerInputTracker && other)
defaultnoexcept
Here is the call graph for this function:

Member Data Documentation

◆ controllerButtons

std::array<std::unique_ptr<ControllerButton>,15> controllerInputTracker::controllerButtons

Array representing all the buttons on a glfw Gamepad.

◆ controllerSticks

std::array<ControllerStick,6> controllerInputTracker::controllerSticks

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