FabGL
ESP32 VGA Controller and Graphics Library
|
Base class for PS2 devices (like mouse or keyboard). More...
#include <ps2device.h>
Public Member Functions | |
PS2Device | identify () |
Identifies the device attached to the PS2 port. More... | |
bool | lock (int timeOutMS) |
Gets exclusive access to the device. More... | |
void | unlock () |
Releases device from exclusive access. More... | |
Base class for PS2 devices (like mouse or keyboard).
PS2DeviceClass connects to one port of the PS2 Controller class (fabgl::PS2ControllerClass).
The PS2 controller uses ULP coprocessor and RTC slow memory to communicate with the PS2 device.
Applications should not use PS2DeviceClass directly: use instead fabgl::MouseClass or fabgl::KeyboardClass.
|
inline |
Identifies the device attached to the PS2 port.
bool fabgl::PS2DeviceClass::lock | ( | int | timeOutMS | ) |
Gets exclusive access to the device.
timeOutMS | Timeout in milliseconds to wait before fail. |
void fabgl::PS2DeviceClass::unlock | ( | ) |
Releases device from exclusive access.