hx3d  1
2D/3D Simple Game Framework
Public Member Functions | List of all members
hx3d::window::InputHandler Class Reference

Input management: use with screens ! More...

#include <input_handler.hpp>

Public Member Functions

virtual void onWindowEvent (WindowEvent::Type type)
 When a window event occur. More...
 
virtual void onMouseClicked (MouseButtonEvent::Button button, glm::vec2 mousePosition)
 When a mouse click event occur. More...
 
virtual void onMouseReleased (MouseButtonEvent::Button button, glm::vec2 mousePosition)
 When a mouse click release event occur. More...
 
virtual void onMouseWheel (MouseWheelEvent::Direction direction, glm::vec2 wheelMovement)
 When a mouse wheel event occur. More...
 
virtual void onMouseMotion (glm::vec2 mousePosition, glm::vec2 mouseMovement)
 When a mouse move event occur. More...
 
virtual void onTouchDown (glm::vec2 touchPosition, float touchPressure)
 When a touch down event occur. More...
 
virtual void onTouchUp (glm::vec2 touchPosition, float touchPressure)
 When a touch up event occur. More...
 
virtual void onTouchMotion (glm::vec2 touchPosition, glm::vec2 touchMovement, float touchPressure)
 When a touch move event occur. More...
 
virtual void onKeyPressed (KeyEvent::Key key)
 When a key is pressed. More...
 
virtual void onKeyReleased (KeyEvent::Key key)
 When a key is released. More...
 

Detailed Description

Input management: use with screens !

Definition at line 34 of file input_handler.hpp.

Member Function Documentation

void hx3d::window::InputHandler::onKeyPressed ( KeyEvent::Key  key)
virtual

When a key is pressed.

Parameters
keyKey

Definition at line 36 of file input_handler.cpp.

void hx3d::window::InputHandler::onKeyReleased ( KeyEvent::Key  key)
virtual

When a key is released.

Parameters
keyKey

Definition at line 37 of file input_handler.cpp.

void hx3d::window::InputHandler::onMouseClicked ( MouseButtonEvent::Button  button,
glm::vec2  mousePosition 
)
virtual

When a mouse click event occur.

Parameters
buttonMouse button
mousePositionMouse position

Definition at line 27 of file input_handler.cpp.

void hx3d::window::InputHandler::onMouseMotion ( glm::vec2  mousePosition,
glm::vec2  mouseMovement 
)
virtual

When a mouse move event occur.

Parameters
mousePositionMouse position
mouseMovementMouse movement

Definition at line 30 of file input_handler.cpp.

void hx3d::window::InputHandler::onMouseReleased ( MouseButtonEvent::Button  button,
glm::vec2  mousePosition 
)
virtual

When a mouse click release event occur.

Parameters
buttonMouse button
mousePositionMouse position

Definition at line 28 of file input_handler.cpp.

void hx3d::window::InputHandler::onMouseWheel ( MouseWheelEvent::Direction  direction,
glm::vec2  wheelMovement 
)
virtual

When a mouse wheel event occur.

Parameters
directionWheel direction
wheelMovementWheel movement

Definition at line 29 of file input_handler.cpp.

void hx3d::window::InputHandler::onTouchDown ( glm::vec2  touchPosition,
float  touchPressure 
)
virtual

When a touch down event occur.

Parameters
touchPositionTouch position
touchPressureTouch pressure

Definition at line 32 of file input_handler.cpp.

void hx3d::window::InputHandler::onTouchMotion ( glm::vec2  touchPosition,
glm::vec2  touchMovement,
float  touchPressure 
)
virtual

When a touch move event occur.

Parameters
touchPositionTouch position
touchMovementTouch movement
touchPressureTouch pressure

Definition at line 34 of file input_handler.cpp.

void hx3d::window::InputHandler::onTouchUp ( glm::vec2  touchPosition,
float  touchPressure 
)
virtual

When a touch up event occur.

Parameters
touchPositionTouch position
touchPressureTouch pressure

Definition at line 33 of file input_handler.cpp.

void hx3d::window::InputHandler::onWindowEvent ( WindowEvent::Type  type)
virtual

When a window event occur.

Parameters
typeWindow event type

Definition at line 26 of file input_handler.cpp.


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