OpenPolygon
1.0.0
OpenPolygon is a Rendering Engine
|
The InputManager controlled InputListener. More...
#include <input.h>
Public Member Functions | |
void | PollEvents (GLFWwindow *window) |
void | addInputListener (InputListener *listener) |
addInputListener More... | |
void | removeListener (InputListener *listener) |
removeListener More... | |
void | capture (int mouseX, int mouseY) |
capture More... | |
void | createKeyBoardEvent (int key, int scancode, int action, int mods) |
createKeyBoardEvent More... | |
void | createKeyListEvent (std::list< int > keys) |
void | createMouseEvent (int button, int action, int mods) |
createMouseEvent More... | |
Vector2f & | getMousePosition (void) |
getMousePosition More... | |
IListenerList & | getListener () |
getListener More... | |
Static Public Member Functions | |
static InputManager * | getSingletonPtr (void) |
getSingletonPtr More... | |
The InputManager controlled InputListener.
Management of Input Devices
void InputManager::addInputListener | ( | InputListener * | listener | ) |
addInputListener
Add Input Listener
listener |
void InputManager::capture | ( | int | mouseX, |
int | mouseY | ||
) |
capture
Capture Mouse and Save x,y data
mouseX | |
mouseY |
void InputManager::createKeyBoardEvent | ( | int | key, |
int | scancode, | ||
int | action, | ||
int | mods | ||
) |
createKeyBoardEvent
Create a Keyboard Event
key | |
scancode | |
action | |
mods |
void InputManager::createMouseEvent | ( | int | button, |
int | action, | ||
int | mods | ||
) |
createMouseEvent
Create a Mouse Event
button | |
action | |
mods |
IListenerList & InputManager::getListener | ( | void | ) |
getListener
Return all Listener
|
static |
void InputManager::removeListener | ( | InputListener * | listener | ) |
removeListener
Remove Input Listener
listener |