In file libs/csinput/csinput.h:

class csKeyboardDriver

This is the lowest-level interface to keyboard

Inheritance:


Public Fields

bool aKey[256]
Alphanumeric key state
csKey Key
Partial key state: arrows, pgup/pgdn, ins/del, home/end, esc etc.

Public Methods

virtual void Close()
Finish receiving keyboard events
csKeyboardDriver()
Initialize keyboard interface
void do_keypress(time_t evtime, int key)
Call this routine to add a key down event to queue
void do_keyrelease(time_t evtime, int key)
Call this routine to add a key up event to queue
virtual bool Open(csEventQueue *EvQueue)
Start receiving keyboard events
virtual bool Ready()
Check if keyboard driver is ready
virtual void Reset()
Call to release all key down flags (when focus switches from application window, for example)
virtual ~csKeyboardDriver()
Deinitialize keyboard interface

Protected Fields

csEventQueue* EventQueue
Event queue which keyboard driver is bound to

Protected Methods

void SetKey(int key, bool state)
Set key state

Documentation

This is the lowest-level interface to keyboard.

Keyboard driver should generate events and put them into the event queue which is passed to object on Open().

csEventQueue* EventQueue
Event queue which keyboard driver is bound to

csKey Key
Partial key state: arrows, pgup/pgdn, ins/del, home/end, esc etc.

bool aKey[256]
Alphanumeric key state

csKeyboardDriver()
Initialize keyboard interface

virtual ~csKeyboardDriver()
Deinitialize keyboard interface

virtual bool Open(csEventQueue *EvQueue)
Start receiving keyboard events

virtual void Close()
Finish receiving keyboard events

virtual bool Ready()
Check if keyboard driver is ready

virtual void Reset()
Call to release all key down flags (when focus switches from application window, for example)

void do_keypress(time_t evtime, int key)
Call this routine to add a key down event to queue

void do_keyrelease(time_t evtime, int key)
Call this routine to add a key up event to queue

void SetKey(int key, bool state)
Set key state. For example SetKey (CSKEY_UP, true). Called automatically by do_keypress and do_keyrelease.


Direct child classes:
SysKeyboardDriver
SysKeyboardDriver
SysKeyboardDriver
SysKeyboardDriver
SysKeyboardDriver
SysKeyboardDriver
SysKeyboardDriver

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de