Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Private Attributes | List of all members
sw::input::KeyboardState Class Reference

State of keyboard buttons. More...

#include <KeyboardState.h>

Public Member Functions

 KeyboardState ()
 
 ~KeyboardState ()
 
const KeyStateGetKeyboardState () const
 Gets array with keyboard state. Array has size KEYBOARD_STATE_KEYS_NUMBER. You can use Keyboard::PhysicalKeys to acces individual elements. More...
 
const KeyStateoperator[] (Keyboard::PhysicalKeys key) const
 Access state of specific key. More...
 
void ApplyEvent (const DeviceEvent &event)
 Sets state depending on event. More...
 
Funkcje do ustawiania stanu (tylko dla dzieci IInput)
KeyStateKeysState ()
 
void RemoveEvents ()
 Removes information about pressed or unpressed buttons. Key states remain unchanged. More...
 

Private Attributes

KeyState m_keyboardState [KEYBOARD_STATE_KEYS_NUMBER]
 

Detailed Description

State of keyboard buttons.

Constructor & Destructor Documentation

sw::input::KeyboardState::KeyboardState ( )
inlineexplicit
sw::input::KeyboardState::~KeyboardState ( )
inline

Member Function Documentation

void sw::input::KeyboardState::ApplyEvent ( const DeviceEvent event)
inline

Sets state depending on event.

const KeyState* sw::input::KeyboardState::GetKeyboardState ( ) const
inline

Gets array with keyboard state. Array has size KEYBOARD_STATE_KEYS_NUMBER. You can use Keyboard::PhysicalKeys to acces individual elements.

KeyState* sw::input::KeyboardState::KeysState ( )
inline
const KeyState& sw::input::KeyboardState::operator[] ( Keyboard::PhysicalKeys  key) const
inline

Access state of specific key.

void sw::input::KeyboardState::RemoveEvents ( )
inline

Removes information about pressed or unpressed buttons. Key states remain unchanged.

Member Data Documentation

KeyState sw::input::KeyboardState::m_keyboardState[KEYBOARD_STATE_KEYS_NUMBER]
private

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