mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -19,12 +19,13 @@
|
||||
# #
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
namespace DRIVERS {
|
||||
|
||||
namespace DRIVERS {
|
||||
enum type {
|
||||
DUMMY = 0,
|
||||
USB_MOUSE_ABSOLUTE,
|
||||
|
||||
@@ -19,20 +19,21 @@
|
||||
# #
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "driver.h"
|
||||
|
||||
namespace DRIVERS {
|
||||
|
||||
namespace DRIVERS {
|
||||
typedef struct {
|
||||
bool caps;
|
||||
bool scroll;
|
||||
bool num;
|
||||
} KeyboardLedsState;
|
||||
|
||||
|
||||
struct Keyboard : public Driver {
|
||||
using Driver::Driver;
|
||||
|
||||
@@ -55,10 +56,12 @@ namespace DRIVERS {
|
||||
/**
|
||||
* False if online or unknown. Otherwise true.
|
||||
*/
|
||||
virtual bool isOffline() { return false; }
|
||||
virtual bool isOffline() {
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual KeyboardLedsState getLeds() {
|
||||
KeyboardLedsState result = {};
|
||||
KeyboardLedsState result = {0};
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -19,13 +19,15 @@
|
||||
# #
|
||||
*****************************************************************************/
|
||||
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "driver.h"
|
||||
|
||||
namespace DRIVERS {
|
||||
|
||||
namespace DRIVERS {
|
||||
class Mouse : public Driver {
|
||||
using Driver::Driver;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user