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

Button state structure.. More...

#include <KeyState.h>

Public Member Functions

 KeyState ()
 
bool IsPressed () const
 
bool IsUp () const
 
bool IsKeyDownEvent () const
 
bool IsKeyUpEvent () const
 
 operator void * () const
 Umożliwia na umieszczanie w ifach if( KeyState ) More...
 
void operator= (KeyState newState)
 
Funkcje do ustawiania stanu (tylko dla dzieci IInput)
void Press ()
 Wciska przycisk. More...
 
void UnPress ()
 Puszcza przycisk. More...
 
void HoldState ()
 Podtrzymuje stan przycisku i kasuje info o eventach. More...
 
void operator= (bool newState)
 

Private Types

enum  KeyStateFlag : int8 { Pressed = 0x1, DownEvent = 0x2, UpEvent = 0x4 }
 

Private Attributes

int8 m_state
 

Detailed Description

Button state structure..

Constructor & Destructor Documentation

sw::input::KeyState::KeyState ( )
inlineexplicit

Member Function Documentation

void sw::input::KeyState::HoldState ( )
inline

Podtrzymuje stan przycisku i kasuje info o eventach.

bool sw::input::KeyState::IsKeyDownEvent ( ) const
inline
bool sw::input::KeyState::IsKeyUpEvent ( ) const
inline
bool sw::input::KeyState::IsPressed ( ) const
inline
bool sw::input::KeyState::IsUp ( ) const
inline
sw::input::KeyState::operator void * ( ) const
inline

Umożliwia na umieszczanie w ifach if( KeyState )

void sw::input::KeyState::operator= ( KeyState  newState)
inline
void sw::input::KeyState::operator= ( bool  newState)
inline
void sw::input::KeyState::Press ( )
inline

Wciska przycisk.

void sw::input::KeyState::UnPress ( )
inline

Puszcza przycisk.

Member Data Documentation

int8 sw::input::KeyState::m_state
private

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