wavelength 1.0.0
Loading...
Searching...
No Matches
InputMgr::ControllerData Class Reference

Input state of one controller. More...

#include <inputmgr.h>

Public Member Functions

 ControllerData ()
 Construct the state with a stopped repeat timer.
ExpressionStick * GetStick ()
const ExpressionStick * GetStick () const
void SetStick (std::unique_ptr< ExpressionStick > pStick)
 Take the stick that bends the notes of the player.
void ResetStick ()
 Release the stick at the point the destructor originally deleted it.
int GetPositionStick () const
void SetPositionStick (int nPositionStick)
 Set the stick whose position goes to the world every frame.
Timer & GetRepeatTimer ()
float GetRepeatMs () const
void SetRepeatMs (float fRepeatMs)
 Set mRepeatTimer in milliseconds at the last repeat check.
int GetDirection () const
void SetDirection (int nDirection)
 Set the direction of the rotation that repeats.

Detailed Description

Input state of one controller.

The RTTI includes the class name.

Constructor & Destructor Documentation

◆ ControllerData()

InputMgr::ControllerData::ControllerData ( )
inline

Construct the state with a stopped repeat timer.

Member Function Documentation

◆ GetStick() [1/2]

ExpressionStick * InputMgr::ControllerData::GetStick ( )
inline
Returns
The stick that bends the notes of the player.

◆ GetStick() [2/2]

const ExpressionStick * InputMgr::ControllerData::GetStick ( ) const
inline
Returns
The stick that bends the notes of the player.

◆ SetStick()

void InputMgr::ControllerData::SetStick ( std::unique_ptr< ExpressionStick > pStick)
inline

Take the stick that bends the notes of the player.

Parameters
pStickThe stick. The state deletes it afterwards.

◆ ResetStick()

void InputMgr::ControllerData::ResetStick ( )
inline

Release the stick at the point the destructor originally deleted it.

◆ GetPositionStick()

int InputMgr::ControllerData::GetPositionStick ( ) const
inline
Returns
The stick whose position goes to the world every frame.

◆ SetPositionStick()

void InputMgr::ControllerData::SetPositionStick ( int nPositionStick)
inline

Set the stick whose position goes to the world every frame.

Parameters
nPositionStickThe stick.

◆ GetRepeatTimer()

Timer & InputMgr::ControllerData::GetRepeatTimer ( )
inline
Returns
The time a rotation button has been down.

◆ GetRepeatMs()

float InputMgr::ControllerData::GetRepeatMs ( ) const
inline
Returns
mRepeatTimer in milliseconds at the last repeat check.

◆ SetRepeatMs()

void InputMgr::ControllerData::SetRepeatMs ( float fRepeatMs)
inline

Set mRepeatTimer in milliseconds at the last repeat check.

Parameters
fRepeatMsThe time.

◆ GetDirection()

int InputMgr::ControllerData::GetDirection ( ) const
inline
Returns
The direction of the rotation that repeats.

◆ SetDirection()

void InputMgr::ControllerData::SetDirection ( int nDirection)
inline

Set the direction of the rotation that repeats.

Parameters
nDirectionThe direction.

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