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

#include <InputManager.h>

Public Member Functions

 ActionState (std::variant< KeyboardKey, MouseButton > key)
 

Public Attributes

bool bIsPressed
 
std::variant< KeyboardKey, MouseButton > key
 

Detailed Description

Holds current action state.

Constructor & Destructor Documentation

◆ ActionState()

ne::ActionState::ActionState ( std::variant< KeyboardKey, MouseButton >  key)
inline

Initialize action state.

Parameters
keyAction key.

Member Data Documentation

◆ bIsPressed

bool ne::ActionState::bIsPressed

Whether the key is pressed or not.

◆ key

std::variant<KeyboardKey, MouseButton> ne::ActionState::key

Action key.


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