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

Input class for testing and debugging. More...

#include <DebugInput.h>

Inheritance diagram for sw::input::DebugInput:
sw::input::IInput

Public Member Functions

 DebugInput ()=default
 
virtual ~DebugInput ()=default
 
virtual bool Init (const InputInitInfo &initInfo) override
 Inicjalizuje cały moduł. Po wywołaniu tej funkcji moduł musi być gotowy do użytku w innym przypadku powinien zwrócić false. More...
 
virtual const std::vector< const KeyboardState * > & GetKeyboardStates () const override
 
virtual const std::vector< const MouseState * > & GetMouseStates () const override
 
virtual const std::vector< const JoystickState * > & GetJoystickStates () const override
 
virtual std::vector< KeyboardDeviceOPtr > & GetKeyboardDevice () override
 
virtual std::vector< MouseDeviceOPtr > & GetMouseDevice () override
 
virtual std::vector< JoystickDeviceOPtr > & GetJoystickDevice () override
 
virtual std::vector< const InputDeviceInfo * > GetDevicesInfo () const override
 
virtual void Update (float timeInterval) override
 
virtual bool UpdateDevices () override
 Funkcja na nowo sprawdza obecne w systemie urządzenia i aktualizuje wszystkie potrzebne dane. More...
 
- Public Member Functions inherited from sw::input::IInput
virtual ~IInput ()=0
 

Private Attributes

std::vector< const KeyboardState * > m_keyboardsStates
 Copy of device state in m_keyboards. More...
 
std::vector< const MouseState * > m_mousesStates
 Copy of device state in m_mouses. More...
 
std::vector< const JoystickState * > m_joysticksStates
 Copy of device state in m_joysticks. More...
 
std::vector< KeyboardDeviceOPtr > m_keyboards
 Only first element is in use now. More...
 
std::vector< MouseDeviceOPtr > m_mouses
 Only first element is in use now. More...
 
std::vector< JoystickDeviceOPtr > m_joysticks
 Only first element is in use now. More...
 
Timestamp m_eventNum
 Number of event in current frame. More...
 
Size m_frameNumber
 
EventCapturem_eventCapture
 

Detailed Description

Input class for testing and debugging.

This class can fake input by reading events form EventCapture object.

Constructor & Destructor Documentation

sw::input::DebugInput::DebugInput ( )
explicitdefault
virtual sw::input::DebugInput::~DebugInput ( )
virtualdefault

Member Function Documentation

std::vector< const InputDeviceInfo * > sw::input::DebugInput::GetDevicesInfo ( ) const
overridevirtual

Implements sw::input::IInput.

std::vector< JoystickDeviceOPtr > & sw::input::DebugInput::GetJoystickDevice ( )
overridevirtual

Implements sw::input::IInput.

const std::vector< const JoystickState * > & sw::input::DebugInput::GetJoystickStates ( ) const
overridevirtual

Implements sw::input::IInput.

std::vector< KeyboardDeviceOPtr > & sw::input::DebugInput::GetKeyboardDevice ( )
overridevirtual

Implements sw::input::IInput.

const std::vector< const KeyboardState * > & sw::input::DebugInput::GetKeyboardStates ( ) const
overridevirtual

Implements sw::input::IInput.

std::vector< MouseDeviceOPtr > & sw::input::DebugInput::GetMouseDevice ( )
overridevirtual

Implements sw::input::IInput.

const std::vector< const MouseState * > & sw::input::DebugInput::GetMouseStates ( ) const
overridevirtual

Implements sw::input::IInput.

bool sw::input::DebugInput::Init ( const InputInitInfo initInfo)
overridevirtual

Inicjalizuje cały moduł. Po wywołaniu tej funkcji moduł musi być gotowy do użytku w innym przypadku powinien zwrócić false.

Implements sw::input::IInput.

void sw::input::DebugInput::Update ( float  timeInterval)
overridevirtual

Implements sw::input::IInput.

bool sw::input::DebugInput::UpdateDevices ( )
overridevirtual

Funkcja na nowo sprawdza obecne w systemie urządzenia i aktualizuje wszystkie potrzebne dane.

Implements sw::input::IInput.

Member Data Documentation

EventCapture* sw::input::DebugInput::m_eventCapture
private
Timestamp sw::input::DebugInput::m_eventNum
private

Number of event in current frame.

Size sw::input::DebugInput::m_frameNumber
private
std::vector< JoystickDeviceOPtr > sw::input::DebugInput::m_joysticks
private

Only first element is in use now.

std::vector< const JoystickState* > sw::input::DebugInput::m_joysticksStates
private

Copy of device state in m_joysticks.

std::vector< KeyboardDeviceOPtr > sw::input::DebugInput::m_keyboards
private

Only first element is in use now.

std::vector< const KeyboardState* > sw::input::DebugInput::m_keyboardsStates
private

Copy of device state in m_keyboards.

std::vector< MouseDeviceOPtr > sw::input::DebugInput::m_mouses
private

Only first element is in use now.

std::vector< const MouseState* > sw::input::DebugInput::m_mousesStates
private

Copy of device state in m_mouses.


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