OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Io::KeyboardInputHandler Class Reference

#include <KeyboardInputHandler.h>

Public Member Functions

 KeyboardInputHandler (IKeyboardController *controller, std::shared_ptr< KeyboardActionMapping > actionMapping)
 
bool IsRunKeyToggled () const
 
bool IsTurnStrafingToggled () const
 
bool IsStealingToggled () const
 
bool IsTakeAllToggled () const
 
bool IsAdventurerBackcycleToggled () const
 
bool IsSpellBackcycleToggled () const
 
bool IsCastOnClickToggled () const
 
bool IsKeyHeld (PlatformKey key) const
 
void GenerateInputActions ()
 
void SetWindowInputStatus (WindowInputStatus status)
 
PlatformKey LastPressedKey () const
 
void ResetKeys ()
 
void StartTextInput (TextInputType type, int max_string_len, GUIWindow *pWindow)
 
bool ProcessTextInput (PlatformKey key, int c)
 
void EndTextInput ()
 
const std::string & GetTextInput () const
 
void SetTextInput (std::string_view text)
 

Private Member Functions

void GeneratePausedActions ()
 
void GenerateGameplayActions ()
 

Private Attributes

IKeyboardControllercontroller
 
std::shared_ptr< KeyboardActionMappingactionMapping
 
PlatformKey lastKeyPressed
 
Duration keydelaytimer
 
int max_input_string_len
 
std::string pPressedKeysBuffer
 
TextInputType inputType
 
GUIWindowwindow
 

Constructor & Destructor Documentation

◆ KeyboardInputHandler()

Io::KeyboardInputHandler::KeyboardInputHandler ( IKeyboardController controller,
std::shared_ptr< KeyboardActionMapping actionMapping 
)
inline

Member Function Documentation

◆ EndTextInput()

void Io::KeyboardInputHandler::EndTextInput ( )

◆ GenerateGameplayActions()

void Io::KeyboardInputHandler::GenerateGameplayActions ( )
private

◆ GenerateInputActions()

void Io::KeyboardInputHandler::GenerateInputActions ( )

◆ GeneratePausedActions()

void Io::KeyboardInputHandler::GeneratePausedActions ( )
private

◆ GetTextInput()

const std::string & Io::KeyboardInputHandler::GetTextInput ( ) const

◆ IsAdventurerBackcycleToggled()

bool Io::KeyboardInputHandler::IsAdventurerBackcycleToggled ( ) const

◆ IsCastOnClickToggled()

bool Io::KeyboardInputHandler::IsCastOnClickToggled ( ) const

◆ IsKeyHeld()

bool Io::KeyboardInputHandler::IsKeyHeld ( PlatformKey  key) const

◆ IsRunKeyToggled()

bool Io::KeyboardInputHandler::IsRunKeyToggled ( ) const

◆ IsSpellBackcycleToggled()

bool Io::KeyboardInputHandler::IsSpellBackcycleToggled ( ) const

◆ IsStealingToggled()

bool Io::KeyboardInputHandler::IsStealingToggled ( ) const

◆ IsTakeAllToggled()

bool Io::KeyboardInputHandler::IsTakeAllToggled ( ) const

◆ IsTurnStrafingToggled()

bool Io::KeyboardInputHandler::IsTurnStrafingToggled ( ) const

◆ LastPressedKey()

PlatformKey Io::KeyboardInputHandler::LastPressedKey ( ) const
inline

◆ ProcessTextInput()

bool Io::KeyboardInputHandler::ProcessTextInput ( PlatformKey  key,
int  c 
)

◆ ResetKeys()

void Io::KeyboardInputHandler::ResetKeys ( )

◆ SetTextInput()

void Io::KeyboardInputHandler::SetTextInput ( std::string_view  text)

◆ SetWindowInputStatus()

void Io::KeyboardInputHandler::SetWindowInputStatus ( WindowInputStatus  status)

◆ StartTextInput()

void Io::KeyboardInputHandler::StartTextInput ( TextInputType  type,
int  max_string_len,
GUIWindow pWindow 
)

Member Data Documentation

◆ actionMapping

std::shared_ptr<KeyboardActionMapping> Io::KeyboardInputHandler::actionMapping
private

◆ controller

IKeyboardController* Io::KeyboardInputHandler::controller
private

◆ inputType

TextInputType Io::KeyboardInputHandler::inputType
private

◆ keydelaytimer

Duration Io::KeyboardInputHandler::keydelaytimer
private

◆ lastKeyPressed

PlatformKey Io::KeyboardInputHandler::lastKeyPressed
private

◆ max_input_string_len

int Io::KeyboardInputHandler::max_input_string_len
private

◆ pPressedKeysBuffer

std::string Io::KeyboardInputHandler::pPressedKeysBuffer
private

◆ window

GUIWindow* Io::KeyboardInputHandler::window
private

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