|
wavelength 1.0.0
|
#include "app/msgsink.h"
Go to the source code of this file.
Enumerations | |
| enum | KeyboardKeyCode { kKeyNone = 0 , kKeyCapsLock = 0x122 , kKeyNumLock = 0x123 , kKeyScrollLock = 0x124 , kKeyPrintScreen = 0x12c , kKeyPause = 0x12d , kKeyEscape = 0x12e , kKeyInsert = 0x136 , kKeyDelete = 0x137 , kKeyHome = 0x138 , kKeyEnd = 0x139 , kKeyPageUp = 0x13a , kKeyPageDown = 0x13b , kKeyLeft = 0x140 , kKeyRight = 0x141 , kKeyUp = 0x142 , kKeyDown = 0x143 , kKeyF1 = 0x191 } |
| Keys KeyboardKeyMsg reports for keys without a character. More... | |
Functions | |
| void | KeyboardInit () |
| Start the USB keyboard library and set up keyboard 0. | |
| void | KeyboardTerminate () |
| Stop the USB keyboard library. | |
| void | KeyboardPoll () |
| Advance the keyboard's request cycle and send a KeyboardKeyMsg for a key pressed. | |
| void | KeyboardAddSink (MsgSink *pSink) |
| Add a sink to the receivers of the USB keyboard messages. | |
| void | KeyboardRemoveSink (MsgSink *pSink) |
| Remove a sink from the receivers of the USB keyboard messages. | |
| enum KeyboardKeyCode |
Keys KeyboardKeyMsg reports for keys without a character.
| void KeyboardInit | ( | ) |
Start the USB keyboard library and set up keyboard 0.
| void KeyboardTerminate | ( | ) |
Stop the USB keyboard library.
| void KeyboardPoll | ( | ) |
Advance the keyboard's request cycle and send a KeyboardKeyMsg for a key pressed.
Without a keyboard, the poll checks for one every hundred calls. With one, each call that finds the previous request finished starts the next read.
| void KeyboardAddSink | ( | MsgSink * | pSink | ) |
Add a sink to the receivers of the USB keyboard messages.
The name is inferred from JoypadAddSink(), which it mirrors.
| pSink | The sink. |
| void KeyboardRemoveSink | ( | MsgSink * | pSink | ) |
Remove a sink from the receivers of the USB keyboard messages.
| pSink | The sink. |