#include <keyboard.h>
Inherits Keyboard.
Inheritance diagram for Pc_keyboard:


|
|
|
Flags that are sent in a byte to REGISTER_DATA immediately after sending COMMAND_WRITE_COMMAND_BYTE to REGISTER_DATA. Very poorly named. |
|
|
Flags that are sent in the same byte (after shifting left by 5) to REGISTER_DATA immediately after sending COMMAND_TYPEMATIC_RATE to REGISTER_DATA. These indicate the keyboard typematic delay before repeating kicks in. |
|
|
Flags that are sent in a byte to REGISTER_DATA immediately after sending COMMAND_SET_LEDS to REGISTER_DATA. These indicate various LED states. |
|
|
Flags that are sent in a byte to REGISTER_DATA immediately after sending COMMAND_TYPEMATIC_RATE to REGISTER_DATA. These indicate the keyboard typematic repeat rate when a key is held down. |
|
|
Keyboard controller registers used for reading and writing.
|
|
|
Types of responses that you can receive from REGISTER_DATA after sending a command to that register.
|
|
|
Flags that are sent in a byte to REGISTER_DATA immediately after sending COMMAND_SELECT_SCANCODE_SET to REGISTER_DATA. These indicate which set of scancodes we want to receive from the keyboard when a key is pressed. Old keyboards only support scancode set 1, all modern keyboards support set 2, and only some keyboards support set 3. |
|
|
Represents various possible states of the keyboard as read from KEYBOARD_STATUS.
|
|
|
Deinitialize this keyboard device and unregister its interrupt.
Implements Keyboard. |
|
|
Return a key event (press or release) from our keyboard buffer. If no key event is currently available, then block until the next event. Implements Keyboard. |
|
|
Return a keypress event from our keyboard buffer. If no key event is currently available, then block until the next event. Implements Keyboard. |
|
|
Grab the next key out of the buffer and return it. Used by the public get_key() functions. |
|
|
Read incoming data from the keyboard and store it in our buffer.
Implements Keyboard. |
|
|
Initialize this keyboard device and register it to start handling keyboard interrupts.
Implements Keyboard. |
|
|
Read a byte of data from the keyboard and return it.
|
|
|
Return the keyboard's current status.
|
|
|
Send the given data to the keyboard controller, first waiting until it's safe to write it. If necessary, retry the send. |
|
|
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. Implements Keyboard. |
|
|
Return a keypress event from our keyboard buffer. If no key event is currently available, then immediately return an event with KEY_NONE. Implements Keyboard. |
|
|
Busy-wait until controller has finished eating through its input buffer.
|
|
|
Send the given data to the keyboard controller.
|
|
|
whether alt is pressed now
|
|
|
where next key will be added
|
|
|
where get_key() grabs from
|
|
|
whether ctrl is pressed now
|
|
|
now processing extended code
|
|
|
|
|
|
keyboard interrupt handler
|
|
|
incoming key buffer
|
|
|
|
|
|
maximum keys held in buffer
|
|
|
whether menu is pressed now
|
|
|
|
|
|
whether shift is pressed now
|
|
|
whether win is pressed now
|
Torsion Operating System, Copyright (C) 2000-2004 Dan Helfman