|
PGR Copakond OpenGL Engine - Bowling
|
Global input manager tracking keyboard states and mouse deltas. More...
#include <input.h>
Public Member Functions | |
| Input (Camera &cam, int winWidth, int winHeight) | |
| void | screenResize (int winWidth, int winHeight) |
| void | resetMouseTarget () |
| Resets mouse deltas to prevent abrupt camera snapping upon initial window focus. | |
| void | keyboardInputEvent (unsigned char key, int x, int y) |
| void | specKeyboardInputEvent (int key, int x, int y) |
| void | keyboardUpInputEvent (unsigned char key, int x, int y) |
| void | specKeyboardUpInputEvent (int key, int x, int y) |
| void | mouseButtonEvent (int button, int state, int x, int y) |
| void | mouseMoveEvent (int x, int y) |
| void | mouseWheelEvent (int wheel, int direction, int x, int y) |
Public Attributes | |
| bool | keysMap [1024] = {false} |
| float | mouseDeltaX = 0.0f |
| float | mouseDeltaY = 0.0f |
| Camera & | _camera |
| int | _winWidth |
| int | _winHeight |
| bool | _firstMouseMovement = false |
| int | _windowWidth = 0 |
| int | _windowHeight = 0 |
| int | _windowPosX = 0 |
| int | _windowPosY = 0 |
Global input manager tracking keyboard states and mouse deltas.
| copakond::Input::Input | ( | Camera & | cam, |
| int | winWidth, | ||
| int | winHeight ) |
| void copakond::Input::keyboardInputEvent | ( | unsigned char | key, |
| int | x, | ||
| int | y ) |
| void copakond::Input::keyboardUpInputEvent | ( | unsigned char | key, |
| int | x, | ||
| int | y ) |
| void copakond::Input::mouseButtonEvent | ( | int | button, |
| int | state, | ||
| int | x, | ||
| int | y ) |
| void copakond::Input::mouseMoveEvent | ( | int | x, |
| int | y ) |
| void copakond::Input::mouseWheelEvent | ( | int | wheel, |
| int | direction, | ||
| int | x, | ||
| int | y ) |
|
inline |
Resets mouse deltas to prevent abrupt camera snapping upon initial window focus.
| void copakond::Input::screenResize | ( | int | winWidth, |
| int | winHeight ) |
| void copakond::Input::specKeyboardInputEvent | ( | int | key, |
| int | x, | ||
| int | y ) |
| void copakond::Input::specKeyboardUpInputEvent | ( | int | key, |
| int | x, | ||
| int | y ) |
| Camera& copakond::Input::_camera |
| bool copakond::Input::_firstMouseMovement = false |
| int copakond::Input::_windowHeight = 0 |
| int copakond::Input::_windowPosX = 0 |
| int copakond::Input::_windowPosY = 0 |
| int copakond::Input::_windowWidth = 0 |
| int copakond::Input::_winHeight |
| int copakond::Input::_winWidth |
| bool copakond::Input::keysMap[1024] = {false} |
Array mapping ASCII and special keys to their boolean pressed state
| float copakond::Input::mouseDeltaX = 0.0f |
| float copakond::Input::mouseDeltaY = 0.0f |