drop 6kro kb for now

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
wip/rcm-stm32
Gergely Nagy 3 years ago
parent 1bb8d4b49d
commit 45545c2358
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -23,8 +23,7 @@ namespace hid {
namespace rcmcomposite { namespace rcmcomposite {
USBHID RCMHID; USBHID RCMHID;
HIDKeyboard RCMBootKeyboard(RCMHID, 0); HIDKeyboard RCMBootKeyboard(RCMHID, 1);
HIDKeyboard RCMKeyboard(RCMHID);
HIDConsumer RCMConsumer(RCMHID); HIDConsumer RCMConsumer(RCMHID);
HIDMouse RCMMouse(RCMHID); HIDMouse RCMMouse(RCMHID);
USBCompositeSerial CompositeSerial; USBCompositeSerial CompositeSerial;

@ -30,16 +30,14 @@ namespace driver {
namespace hid { namespace hid {
namespace rcmcomposite { namespace rcmcomposite {
extern USBHID RCMHID; extern USBHID RCMHID;
extern HIDKeyboard RCMBootKeyboard;
extern HIDConsumer RCMConsumer;
extern USBCompositeSerial CompositeSerial; extern USBCompositeSerial CompositeSerial;
const uint8_t report_description_[] = { const uint8_t report_description_[] = {
HID_BOOT_KEYBOARD_REPORT_DESCRIPTOR(), HID_BOOT_KEYBOARD_REPORT_DESCRIPTOR(),
HID_KEYBOARD_REPORT_DESCRIPTOR(2), HID_CONSUMER_REPORT_DESCRIPTOR(),
HID_CONSUMER_REPORT_DESCRIPTOR(3), HID_MOUSE_REPORT_DESCRIPTOR()
HID_MOUSE_REPORT_DESCRIPTOR(4)
}; };
} }

@ -28,7 +28,6 @@ namespace hid {
namespace rcmcomposite { namespace rcmcomposite {
extern HIDKeyboard RCMBootKeyboard; extern HIDKeyboard RCMBootKeyboard;
extern HIDKeyboard RCMKeyboard;
extern HIDConsumer RCMConsumer; extern HIDConsumer RCMConsumer;
class BootKeyboardWrapper { class BootKeyboardWrapper {
@ -81,56 +80,6 @@ class BootKeyboardWrapper {
} }
}; };
class SixKROKeyboardWrapper {
public:
SixKROKeyboardWrapper() {}
void begin() {}
uint8_t getProtocol() {
return 1;
}
void setProtocol(uint8_t protocol) {}
void setDefaultProtocol(uint8_t protocol) {}
void sendReport() {
RCMKeyboard.sendReport();
}
void press(uint8_t code) {
RCMKeyboard.press(code);
}
void release(uint8_t code) {
RCMKeyboard.release(code);
}
void releaseAll() {
RCMKeyboard.releaseAll();
}
bool isKeyPressed(uint8_t code) {
return RCMKeyboard.isKeyPressed(code);
}
bool wasKeyPressed(uint8_t code) {
return RCMKeyboard.wasKeyPressed(code);
}
bool isModifierActive(uint8_t code) {
return RCMKeyboard.isModifierActive(code);
}
bool wasModifierActive(uint8_t code) {
return RCMKeyboard.wasModifierActive(code);
}
bool isAnyModifierActive() {
return RCMKeyboard.isAnyModifierActive();
}
bool wasAnyModifierActive() {
return RCMKeyboard.wasAnyModifierActive();
}
uint8_t getLeds() {
return RCMKeyboard.getLEDs();
}
};
class ConsumerControlWrapper { class ConsumerControlWrapper {
public: public:
ConsumerControlWrapper() {} ConsumerControlWrapper() {}
@ -155,7 +104,6 @@ class ConsumerControlWrapper {
struct KeyboardProps: public base::KeyboardProps { struct KeyboardProps: public base::KeyboardProps {
typedef BootKeyboardWrapper BootKeyboard; typedef BootKeyboardWrapper BootKeyboard;
typedef SixKROKeyboardWrapper NKROKeyboard;
typedef ConsumerControlWrapper ConsumerControl; typedef ConsumerControlWrapper ConsumerControl;
}; };

Loading…
Cancel
Save