hx3d
1
2D/3D Simple Game Framework
|
SDL2 event manager implementation. More...
#include <sdl2_events.hpp>
Public Member Functions | |
virtual void | poll () override |
Poll the event queue. | |
![]() | |
bool | isWindowState (WindowEvent::Type type) |
Test the window state. More... | |
bool | isMouseButtonClicked (MouseButtonEvent::Button button) |
Test if a mouse button have been clicked. More... | |
bool | isMouseButtonReleased (MouseButtonEvent::Button button) |
Test if a mouse button have been relased. More... | |
bool | isMouseButtonJustClicked (MouseButtonEvent::Button button) |
Test if a mouse button have just been clicked. More... | |
bool | isMouseButtonJustReleased (MouseButtonEvent::Button button) |
Test if a mouse button have just been released. More... | |
bool | isMouseWheelTurned (MouseWheelEvent::Direction direction) |
Test if the mouse wheel have been turned in a direction. More... | |
bool | isScreenTouched () |
Test if the screen have been touched. More... | |
bool | isScreenReleased () |
Test if the screen have been released. More... | |
bool | isScreenJustTouched () |
Test if the screen have been just touched. More... | |
bool | isScreenJustReleased () |
Test if the screen have been just released. More... | |
bool | isKeyPressed (KeyEvent::Key key) |
Test if the key have been pressed. More... | |
bool | isKeyReleased (KeyEvent::Key key) |
Test if the key have been released. More... | |
bool | isKeyJustPressed (KeyEvent::Key key) |
Test if the key have just been pressed. More... | |
bool | isKeyJustReleased (KeyEvent::Key key) |
Test if the key have just been released. More... | |
glm::vec2 | getMousePosition () |
Get the current mouse position. More... | |
glm::vec2 | getMouseMovement () |
Get the current mouse movement. More... | |
glm::vec2 | getMouseWheelMovement () |
Get the current mouse wheel movement. More... | |
glm::vec2 | getTouchPosition () |
Get the current touch position. More... | |
glm::vec2 | getScreenConvertedTouchPosition () |
Get the screen converted touch position. More... | |
glm::vec2 | getTouchMovement () |
Get the current touch movement. More... | |
float | getTouchPressure () |
Get the current touch pressure. More... | |
void | emulateTouchWithMouse (bool value) |
Emulate the touch system with the mouse. More... | |
void | setInputHandler (InputHandler *handler) |
Define an input handler. More... | |
void | setInputHandler (Ptr< InputHandler > handler) |
Define an input handler. More... | |
Additional Inherited Members | |
![]() | |
bool * | _keysReleased |
Keys released. | |
bool * | _keysPressed |
Keys pressed. | |
bool * | _mouseButtonClicked |
Mouse buttons clicked. | |
bool * | _mouseButtonReleased |
Mouse buttons released. | |
bool * | _mouseWheelTurned |
Mouse wheels turned. | |
bool * | _windowEvents |
Window events. | |
bool | _screenTouched |
Screen touched ? | |
bool | _screenReleased |
Screen released ? | |
glm::vec2 | _mousePosition |
Mouse position. | |
glm::vec2 | _mouseMovement |
Mouse movement. | |
glm::vec2 | _mouseWheelMovement |
Mouse wheel movement. | |
glm::vec2 | _touchPosition |
Touch position. | |
glm::vec2 | _touchMovement |
Touch movement. | |
float | _touchPressure |
Touch pressure. | |
bool | _touchSimulation |
Is touch simulated with mouse ? | |
InputHandler * | _currentHandler |
Current input handler. | |
SDL2 event manager implementation.
Definition at line 32 of file sdl2_events.hpp.