MochiEngine
Loading...
Searching...
No Matches
Mochi::Input::DummyKeyboardProvider Class Reference
Inheritance diagram for Mochi::Input::DummyKeyboardProvider:
Mochi::Input::IKeyboardProvider

Public Member Functions

virtual const bool * GetState () const override
 Gets an array of boolean values defining if each keyboard key is being pressed this frame or not. Key mapping is responsability of each implementation, but currently should follow the SDL keycode definitions.
virtual size_t GetMaxKeys () const override
 Gets the maximum amount of keys, which is the size of the GetState array of bools.

Member Function Documentation

◆ GetMaxKeys()

virtual size_t Mochi::Input::DummyKeyboardProvider::GetMaxKeys ( ) const
inlineoverridevirtual

Gets the maximum amount of keys, which is the size of the GetState array of bools.

Returns
The amount of keys the keyboard has.

Implements Mochi::Input::IKeyboardProvider.

◆ GetState()

virtual const bool * Mochi::Input::DummyKeyboardProvider::GetState ( ) const
inlineoverridevirtual

Gets an array of boolean values defining if each keyboard key is being pressed this frame or not. Key mapping is responsability of each implementation, but currently should follow the SDL keycode definitions.

Returns
A pointer to a bool array.

Implements Mochi::Input::IKeyboardProvider.


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