|
|
|
@ -40,6 +40,7 @@ struct cRGB {
|
|
|
|
|
#include "kaleidoscope/driver/led/Base.h"
|
|
|
|
|
#include "kaleidoscope/device/Base.h"
|
|
|
|
|
#include "kaleidoscope/driver/hid/Keyboardio.h"
|
|
|
|
|
#include "kaleidoscope/driver/hid/Base.h"
|
|
|
|
|
#include "kaleidoscope/driver/bootloader/gd32/Base.h"
|
|
|
|
|
|
|
|
|
|
namespace kaleidoscope {
|
|
|
|
@ -102,6 +103,8 @@ class Model100KeyScanner : public kaleidoscope::driver::keyscanner::Base<Model10
|
|
|
|
|
static uint8_t previousPressedKeyswitchCount();
|
|
|
|
|
|
|
|
|
|
static void setKeyscanInterval(uint8_t interval);
|
|
|
|
|
static void enableScannerPower();
|
|
|
|
|
static void disableScannerPower();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
static driver::keyboardio::keydata_t leftHandState;
|
|
|
|
@ -110,15 +113,18 @@ class Model100KeyScanner : public kaleidoscope::driver::keyscanner::Base<Model10
|
|
|
|
|
static driver::keyboardio::keydata_t previousRightHandState;
|
|
|
|
|
|
|
|
|
|
static void actOnHalfRow(byte row, byte colState, byte colPrevState, byte startPos);
|
|
|
|
|
static void enableScannerPower();
|
|
|
|
|
static void disableScannerPower();
|
|
|
|
|
};
|
|
|
|
|
#else // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
|
class Model100KeyScanner;
|
|
|
|
|
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
|
|
|
|
|
|
|
|
|
|
struct Model100HIDProps: public kaleidoscope::driver::hid::KeyboardioProps {
|
|
|
|
|
typedef kaleidoscope::driver::hid::base::AbsoluteMouseProps AbsoluteMouseProps;
|
|
|
|
|
typedef kaleidoscope::driver::hid::base::AbsoluteMouse<AbsoluteMouseProps> AbsoluteMouse;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct Model100Props : public kaleidoscope::device::BaseProps {
|
|
|
|
|
typedef kaleidoscope::driver::hid::KeyboardioProps HIDProps;
|
|
|
|
|
typedef Model100HIDProps HIDProps;
|
|
|
|
|
typedef kaleidoscope::driver::hid::Keyboardio<HIDProps> HID;
|
|
|
|
|
|
|
|
|
|
typedef Model100LEDDriverProps LEDDriverProps;
|
|
|
|
|