Darc Library  2012.11
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
darc::core::IKeyboardScanner Class Reference

Short. More...

#include <cr_keyboard.h>

Inheritance diagram for darc::core::IKeyboardScanner:
darc::protox::DIKeyboardScanner

List of all members.

Public Member Functions

 IKeyboardScanner ()
EventHandlerGetEventHandler ()
 The method returns an event handler.
DCR Update ()
 Call this periodically to scan a keyboard.
virtual bool IsKeyDown (Byte _code) const =0
 Returns true if a key, specified by its scan code, is pressed.

Protected Member Functions

virtual DCR UpdateState ()=0
 This function updates the m_keyState array.

Protected Attributes

Byte m_keyState [256]

Detailed Description

Short.

Detailed


Constructor & Destructor Documentation


Member Function Documentation

The method returns an event handler.

The object's event handler can be used to connect to any item of KeyEvent::E_SUBTYPE. All invoked functions will receive the pointer to a KeyEvent as their parameter.

See also:
IFunction
virtual bool darc::core::IKeyboardScanner::IsKeyDown ( Byte  _code) const [pure virtual]

Returns true if a key, specified by its scan code, is pressed.

All subclasses must implement a layout specific way to determine a keys status.

See also:
UpdateState()

Implemented in darc::protox::DIKeyboardScanner.

Call this periodically to scan a keyboard.

virtual DCR darc::core::IKeyboardScanner::UpdateState ( ) [protected, pure virtual]

This function updates the m_keyState array.

All subclasses must implement a layout specific way to Setup the key states.

See also:
IsKeyDown()

Implemented in darc::protox::DIKeyboardScanner.


Member Data Documentation


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