mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
add keyboard interface (#95)
This commit is contained in:
@@ -25,18 +25,21 @@
|
||||
|
||||
namespace DRIVERS {
|
||||
|
||||
enum type {
|
||||
USB_MOUSE_ABSOLUTE,
|
||||
USB_MOUSE_RELATIVE,
|
||||
USB_MOUSE_ABSOLUTE_WIN98,
|
||||
};
|
||||
enum type {
|
||||
DUMMY = 0,
|
||||
USB_MOUSE_ABSOLUTE,
|
||||
USB_MOUSE_RELATIVE,
|
||||
USB_MOUSE_ABSOLUTE_WIN98,
|
||||
USB_KEYBOARD,
|
||||
PS2_KEYBOARD,
|
||||
};
|
||||
|
||||
class Driver {
|
||||
public:
|
||||
Driver(type _type) : _type(_type) {}
|
||||
uint8_t getType() { return _type; }
|
||||
class Driver {
|
||||
public:
|
||||
Driver(type _type) : _type(_type) {}
|
||||
uint8_t getType() { return _type; }
|
||||
|
||||
private:
|
||||
type _type;
|
||||
};
|
||||
private:
|
||||
type _type;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user