Nameless Engine
Loading...
Searching...
No Matches
ne::AxisState Class Reference

#include <InputManager.h>

Public Member Functions

 AxisState (KeyboardKey plusKey, KeyboardKey minusKey)
 

Public Attributes

KeyboardKey plusKey
 
KeyboardKey minusKey
 
bool bIsPlusKeyPressed
 
bool bIsMinusKeyPressed
 

Detailed Description

Holds current axis event state.

Constructor & Destructor Documentation

◆ AxisState()

ne::AxisState::AxisState ( KeyboardKey  plusKey,
KeyboardKey  minusKey 
)
inline

Initializes axis event state.

Parameters
plusKeyKey for '+1' input.
minusKeyKey for '-1' input.

Member Data Documentation

◆ bIsMinusKeyPressed

bool ne::AxisState::bIsMinusKeyPressed

Whether minusKey is currently pressed or not.

◆ bIsPlusKeyPressed

bool ne::AxisState::bIsPlusKeyPressed

Whether plusKey is currently pressed or not.

◆ minusKey

KeyboardKey ne::AxisState::minusKey

Plus key (triggers input value '-1').

◆ plusKey

KeyboardKey ne::AxisState::plusKey

Plus key (triggers input value '+1').


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