syBR::InputCore::KeyboardHandler Class Reference

Base keyboard handler class. More...

#include <KeyboardHandler.hpp>

Inheritance diagram for syBR::InputCore::KeyboardHandler:

syBR::InputOIS::KeyboardHandler

List of all members.

Public Member Functions

 KeyboardHandler ()
 Constructor.
virtual ~KeyboardHandler ()
 Destructor.
virtual bool isKeyDown (KeyCode key)=0
 Check if a key is down.


Detailed Description

Base keyboard handler class.

This is the object which gives access to the keyboard. This is a pure abstract class which needs a concrete implementation (using OIS, DirectInput or any other input library).


Constructor & Destructor Documentation

syBR::InputCore::KeyboardHandler::KeyboardHandler (  ) 

Constructor.

syBR::InputCore::KeyboardHandler::~KeyboardHandler (  )  [virtual]

Destructor.

Reimplemented in syBR::InputOIS::KeyboardHandler.


Member Function Documentation

virtual bool syBR::InputCore::KeyboardHandler::isKeyDown ( KeyCode  key  )  [pure virtual]

Check if a key is down.

Parameters:
key Key to be checked
Returns:
One of these:
  • true if the key is currently down
  • false otherwise

Implemented in syBR::InputOIS::KeyboardHandler.


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

Copyright © 2008 by Sebastien Frippiat
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Last modified Tue Dec 30 17:57:34 2008