Cutout Vis2012
TUWienVisualisierung2(SS2012)-AdaptiveCutaways
 All Classes Namespaces Functions Pages
Public Member Functions | List of all members
InputHandler Class Reference

#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 ()
 

Detailed Description

Handler for keyboard and mouse events

Member Function Documentation

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.


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