Ps2KeyboardHost
1.0.1
Allows you to read from one or more PS2-style keyboards on an Arduino.
|
Translates from PS2's default scancode set to USB/HID. More...
#include <ps2_UsbTranslator.h>
Public Member Functions | |
UsbTranslator () | |
UsbTranslator (Diagnostics &diagnostics) | |
void | reset () |
causes it to forget about any scan codes that it has recorded so far and start fresh. More... | |
UsbKeyAction | translatePs2Keycode (ps2::KeyboardOutput ps2Scan) |
Examines a scan code (from the default PS2 scan code set) and translates it into the corresponding USB/HID scan code. More... | |
KeyboardLeds | translateLeds (UsbKeyboardLeds usbLeds) |
Translates from PS2's default scancode set to USB/HID.
The translation was mostly culled from http://www.hiemalis.org/~keiji/PC/scancode-translate.pdf
ps2::UsbTranslator< Diagnostics >::UsbTranslator | ( | ) |
ps2::UsbTranslator< Diagnostics >::UsbTranslator | ( | Diagnostics & | diagnostics | ) |
void ps2::UsbTranslator< Diagnostics >::reset | ( | ) |
causes it to forget about any scan codes that it has recorded so far and start fresh.
ps2::KeyboardLeds ps2::UsbTranslator< Diagnostics >::translateLeds | ( | UsbKeyboardLeds | usbLeds | ) |
ps2::UsbKeyAction ps2::UsbTranslator< Diagnostics >::translatePs2Keycode | ( | ps2::KeyboardOutput | ps2Scan | ) |
Examines a scan code (from the default PS2 scan code set) and translates it into the corresponding USB/HID scan code.