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

State of mouse. More...

#include <MouseState.h>

Public Member Functions

 MouseState ()
 
 ~MouseState ()
 
const float * GetAxesState () const
 
const KeyState * GetButtonsState () const
 
uint16 GetPositionX () const
 
uint16 GetPositionY () const
 
void SetPosition (short X, short Y)
 Ustawia pozycję myszy. More...
 
float WheelDelta () const
 
const KeyState * LeftButton () const
 
const KeyState * RightButton () const
 
const KeyState * MiddleButton () const
 
const KeyState * XButton1 () const
 
const KeyState * XButton2 () const
 
const KeyState & operator[] (Mouse::PhysicalButtons button) const
 
void ApplyEvent (const ButtonEvent &event)
 Updates state depending on event. More...
 
void ApplyEvent (const AxisEvent &event)
 Updates state depending on event. More...
 
void ApplyEvent (const CursorEvent &event)
 Updates state depending on event. More...
 
void ApplyEvent (const DeviceEvent &event)
 Updates state depending on event. More...
 
Functions for setting state (only for IInput)
void RemoveEvents ()
 Czyści tablicę z eventów o wciśnięciu klawiszy, ale podtrzymuje stan przycisków. More...
 

Private Attributes

float m_axes [4]
 
uint16 m_position [2]
 Współrzędne X i Y. More...
 
KeyState m_buttons [MOUSE_STATE_MAX_NUM_BUTTONS]
 

Detailed Description

State of mouse.

Constructor & Destructor Documentation

sw::input::MouseState::MouseState ( )
inline
sw::input::MouseState::~MouseState ( )
inline

Member Function Documentation

void sw::input::MouseState::ApplyEvent ( const ButtonEvent &  event)
inline

Updates state depending on event.

void sw::input::MouseState::ApplyEvent ( const AxisEvent &  event)
inline

Updates state depending on event.

void sw::input::MouseState::ApplyEvent ( const CursorEvent &  event)
inline

Updates state depending on event.

void sw::input::MouseState::ApplyEvent ( const DeviceEvent &  event)
inline

Updates state depending on event.

const float* sw::input::MouseState::GetAxesState ( ) const
inline
const KeyState* sw::input::MouseState::GetButtonsState ( ) const
inline
uint16 sw::input::MouseState::GetPositionX ( ) const
inline
uint16 sw::input::MouseState::GetPositionY ( ) const
inline
const KeyState * sw::input::MouseState::LeftButton ( ) const
inline
const KeyState * sw::input::MouseState::MiddleButton ( ) const
inline
const KeyState& sw::input::MouseState::operator[] ( Mouse::PhysicalButtons  button) const
inline
void sw::input::MouseState::RemoveEvents ( )
inline

Czyści tablicę z eventów o wciśnięciu klawiszy, ale podtrzymuje stan przycisków.

const KeyState * sw::input::MouseState::RightButton ( ) const
inline
void sw::input::MouseState::SetPosition ( short  X,
short  Y 
)
inline

Ustawia pozycję myszy.

Powinno być używane jedynie przez moduł wejścia (IInput).

float sw::input::MouseState::WheelDelta ( ) const
inline
const KeyState * sw::input::MouseState::XButton1 ( ) const
inline
const KeyState * sw::input::MouseState::XButton2 ( ) const
inline

Member Data Documentation

float sw::input::MouseState::m_axes[4]
private
KeyState sw::input::MouseState::m_buttons[MOUSE_STATE_MAX_NUM_BUTTONS]
private
uint16 sw::input::MouseState::m_position[2]
private

Współrzędne X i Y.


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