Sleeping Wombat GUI
0.100
swGUI
|
Klasa obsługująca wejście użytkownika. More...
#include <DirectInputModule.h>
Public Member Functions | |
DirectInputModule () | |
virtual | ~DirectInputModule () |
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 Member Functions | |
void | CleanDirectInput () |
Zwalania zasoby DirectInputa. More... | |
void | UpdateKeyboard (int idx) |
void | UpdateMouse (int idx) |
void | UpdateJoystick (int idx) |
Private Attributes | |
HWND | m_windowHandle |
LPDIRECTINPUT8 | m_directInput |
LPDIRECTINPUTDEVICE8 | m_keyboardInput |
LPDIRECTINPUTDEVICE8 | m_mouseInput |
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... | |
Klasa obsługująca wejście użytkownika.
Używa interfejsu Direct Inputa.
Zrobić obsługę wielu urządzeń tego samego typu i jousticka.
Pozbyć się includowania direct input z EngineCore.
|
explicit |
|
virtual |
|
private |
Zwalania zasoby DirectInputa.
|
overridevirtual |
Implements sw::input::IInput.
|
overridevirtual |
Implements sw::input::IInput.
|
overridevirtual |
Implements sw::input::IInput.
|
overridevirtual |
Implements sw::input::IInput.
|
overridevirtual |
Implements sw::input::IInput.
|
overridevirtual |
Implements sw::input::IInput.
|
overridevirtual |
Implements sw::input::IInput.
|
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.
|
overridevirtual |
Implements sw::input::IInput.
|
overridevirtual |
Funkcja na nowo sprawdza obecne w systemie urządzenia i aktualizuje wszystkie potrzebne dane.
Implements sw::input::IInput.
|
private |
|
private |
|
private |
|
private |
|
private |
Only first element is in use now.
|
private |
Copy of device state in m_joysticks.
|
private |
|
private |
Only first element is in use now.
|
private |
Copy of device state in m_keyboards.
|
private |
|
private |
Only first element is in use now.
|
private |
Copy of device state in m_mouses.
|
private |