Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | List of all members
sw::input::IInput Class Referenceabstract

Interface for input classes for capturing user input. More...

#include <IInput.h>

Inheritance diagram for sw::input::IInput:
sw::input::DebugInput sw::input::DirectInputModule sw::input::WinApiInputProxy sw::input::WPFInputProxy

Public Member Functions

virtual ~IInput ()=0
 
virtual bool Init (const InputInitInfo &initInfo)=0
 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 =0
 
virtual const std::vector< const MouseState * > & GetMouseStates () const =0
 
virtual const std::vector< const JoystickState * > & GetJoystickStates () const =0
 
virtual std::vector< KeyboardDeviceOPtr > & GetKeyboardDevice ()=0
 
virtual std::vector< MouseDeviceOPtr > & GetMouseDevice ()=0
 
virtual std::vector< JoystickDeviceOPtr > & GetJoystickDevice ()=0
 
virtual std::vector< const InputDeviceInfo * > GetDevicesInfo () const =0
 
virtual void Update (float timeInterval)=0
 
virtual bool UpdateDevices ()=0
 Funkcja na nowo sprawdza obecne w systemie urządzenia i aktualizuje wszystkie potrzebne dane. More...
 

Detailed Description

Interface for input classes for capturing user input.

Todo:
Deal with situation when we must have two different IInput objects to handle input. For example WinAPI deals with keyboard and mouse and other IINput with Joysticks.
Todo:
We must think about handling other devices. For example WPF have such types as StylusDevice, TouchDevice and TabletDevice. Can we do it as combinations of keyboard, mouse and joysticks or we must introduce new API for that.
Todo:
DirectInput should be created one per window. In this moment we have one input in whole application. We must rethink it.

Constructor & Destructor Documentation

virtual sw::input::IInput::~IInput ( )
inlinepure virtual

Member Function Documentation

virtual std::vector< const InputDeviceInfo* > sw::input::IInput::GetDevicesInfo ( ) const
pure virtual
virtual std::vector< JoystickDeviceOPtr >& sw::input::IInput::GetJoystickDevice ( )
pure virtual
virtual const std::vector< const JoystickState* >& sw::input::IInput::GetJoystickStates ( ) const
pure virtual
virtual std::vector< KeyboardDeviceOPtr >& sw::input::IInput::GetKeyboardDevice ( )
pure virtual
virtual const std::vector< const KeyboardState* >& sw::input::IInput::GetKeyboardStates ( ) const
pure virtual
virtual std::vector< MouseDeviceOPtr >& sw::input::IInput::GetMouseDevice ( )
pure virtual
virtual const std::vector< const MouseState* >& sw::input::IInput::GetMouseStates ( ) const
pure virtual
virtual bool sw::input::IInput::Init ( const InputInitInfo initInfo)
pure virtual

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

Implemented in sw::input::WinApiInputProxy, sw::input::DirectInputModule, sw::input::DebugInput, and sw::input::WPFInputProxy.

virtual void sw::input::IInput::Update ( float  timeInterval)
pure virtual
virtual bool sw::input::IInput::UpdateDevices ( )
pure virtual

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

Implemented in sw::input::WinApiInputProxy, sw::input::DirectInputModule, sw::input::DebugInput, and sw::input::WPFInputProxy.


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