Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
|
#include <InputHandler.h>
Public Member Functions | |
bool | isMouseDown (int button) |
bool | isMousePressed (int button) |
bool | isMouseReleased (int button) |
bool | isKeyDown (int key) |
bool | isKeyPressed (int key) |
bool | isKeyReleased (int key) |
void | update () |
Handler for keyboard and mouse events
bool InputHandler::isKeyDown | ( | int | key) |
Returns true iff key
is held down.
bool InputHandler::isKeyPressed | ( | int | key) |
Returns true iff key
was pressed down since the last call to update()
.
bool InputHandler::isKeyReleased | ( | int | key) |
Returns true iff key
was released since the last call to update()
.
bool InputHandler::isMouseDown | ( | int | button) |
Returns true iff button
is held down.
bool InputHandler::isMousePressed | ( | int | button) |
Returns true iff button
was pressed down since the last call to update()
.
bool InputHandler::isMouseReleased | ( | int | button) |
Returns true iff button
was released since the last call to update()
.
void InputHandler::update | ( | ) |
Called each frame by the application.