Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

Keyboard Class Reference

This is an abstract keyboard device, implemented by keyboard drivers. More...

#include <keyboard.h>

Inherited by Pc_keyboard.

Inheritance diagram for Keyboard:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual void init ()=0
virtual void deinit ()=0
virtual Key_event get_key ()=0
virtual Key_event try_get_key ()=0
virtual Key_event get_keypress ()=0
virtual Key_event try_get_keypress ()=0
virtual bool handle_interrupt ()=0

Detailed Description

This is an abstract keyboard device, implemented by keyboard drivers.


Member Function Documentation

virtual void Keyboard::deinit  )  [pure virtual]
 

Deinitialize this keyboard device and make it inactive.

Implemented in Pc_keyboard.

virtual Key_event Keyboard::get_key  )  [pure virtual]
 

Return a key event (press or release) from our keyboard buffer.

If no key event is currently available, then block until the next event.

Implemented in Pc_keyboard.

virtual Key_event Keyboard::get_keypress  )  [pure virtual]
 

Return a keypress event from our keyboard buffer.

If no key event is currently available, then block until the next event.

Implemented in Pc_keyboard.

virtual bool Keyboard::handle_interrupt  )  [pure virtual]
 

Take appropriate actions after receiving an incoming keyboard interrupt.

Implemented in Pc_keyboard.

virtual void Keyboard::init  )  [pure virtual]
 

Initialize this keyboard device and make it active.

Implemented in Pc_keyboard.

virtual Key_event Keyboard::try_get_key  )  [pure virtual]
 

Return a key event (press or release) from our keyboard buffer.

If no key event is currently available, then immediately return an event with KEY_NONE.

Implemented in Pc_keyboard.

virtual Key_event Keyboard::try_get_keypress  )  [pure virtual]
 

Return a keypress event from our keyboard buffer.

If no key event is currently available, then immediately return an event with KEY_NONE.

Implemented in Pc_keyboard.


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

Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman