The Pedigree Project  0.1
Public Member Functions | List of all members
MaltaKeyboard Class Reference
+ Inheritance diagram for MaltaKeyboard:
+ Collaboration diagram for MaltaKeyboard:

Public Member Functions

virtual void initialise ()
 
virtual char getChar ()
 
virtual char getCharNonBlock ()
 
virtual bool shift ()
 
virtual bool ctrl ()
 
virtual bool alt ()
 
virtual bool capsLock ()
 
- Public Member Functions inherited from Keyboard
virtual void setDebugState (bool enableDebugState)=0
 
virtual bool getDebugState ()=0
 
virtual char getLedState ()
 
virtual void setLedState (char state)
 

Additional Inherited Members

- Public Types inherited from Keyboard
enum  KeyFlags {
  Special = 1ULL << 63, Ctrl = 1ULL << 62, Shift = 1ULL << 61, Alt = 1ULL << 60,
  AltGr = 1ULL << 59, Special = 1ULL << 63, Ctrl = 1ULL << 62, Shift = 1ULL << 61,
  Alt = 1ULL << 60, AltGr = 1ULL << 59
}
 
enum  KeyboardLeds {
  ScrollLock = 1 << 0, NumLock = 1 << 1, CapsLock = 1 << 2, Led1 = 1 << 3,
  Led2 = 1 << 4, Led3 = 1 << 5, Led4 = 1 << 6, Led5 = 1 << 7
}
 Bit numbers follow the same format as the PS/2 keyboard LED byte. More...
 
enum  KeyFlags {
  Special = 1ULL << 63, Ctrl = 1ULL << 62, Shift = 1ULL << 61, Alt = 1ULL << 60,
  AltGr = 1ULL << 59, Special = 1ULL << 63, Ctrl = 1ULL << 62, Shift = 1ULL << 61,
  Alt = 1ULL << 60, AltGr = 1ULL << 59
}
 

Detailed Description

Definition at line 25 of file kernel/machine/malta/Keyboard.h.

Member Function Documentation

virtual bool MaltaKeyboard::alt ( )
inlinevirtual
Returns
True if alt is currently held.

Definition at line 78 of file kernel/machine/malta/Keyboard.h.

virtual bool MaltaKeyboard::capsLock ( )
inlinevirtual
Returns
True if caps lock is currently on.

Definition at line 86 of file kernel/machine/malta/Keyboard.h.

virtual bool MaltaKeyboard::ctrl ( )
inlinevirtual
Returns
True if ctrl is currently held.

Definition at line 70 of file kernel/machine/malta/Keyboard.h.

virtual char MaltaKeyboard::getChar ( )
inlinevirtual

Retrieves a character from the keyboard. Blocking I/O.

Returns
The character recieved or zero if it is a character without an ascii representation.

Implements Keyboard.

Definition at line 43 of file kernel/machine/malta/Keyboard.h.

virtual char MaltaKeyboard::getCharNonBlock ( )
inlinevirtual

Retrieves a character from the keyboard. Non blocking I/O.

Returns
The character recieved or zero if it is a character without an ascii representation, or zero also if no character was present.

Implements Keyboard.

Definition at line 54 of file kernel/machine/malta/Keyboard.h.

virtual void MaltaKeyboard::initialise ( )
inlinevirtual

Initialises the device.

Implements Keyboard.

Definition at line 34 of file kernel/machine/malta/Keyboard.h.

virtual bool MaltaKeyboard::shift ( )
inlinevirtual
Returns
True if shift is currently held.

Definition at line 62 of file kernel/machine/malta/Keyboard.h.


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