Disable SingleAbsoluteMouse on the Model 100 since our

arduino core doesn't yet handle six endpoints
pull/1109/head
Jesse Vincent 3 years ago
parent 26a3034578
commit 258b03a45c
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -40,6 +40,7 @@ struct cRGB {
#include "kaleidoscope/driver/led/Base.h" #include "kaleidoscope/driver/led/Base.h"
#include "kaleidoscope/device/Base.h" #include "kaleidoscope/device/Base.h"
#include "kaleidoscope/driver/hid/Keyboardio.h" #include "kaleidoscope/driver/hid/Keyboardio.h"
#include "kaleidoscope/driver/hid/Base.h"
#include "kaleidoscope/driver/bootloader/gd32/Base.h" #include "kaleidoscope/driver/bootloader/gd32/Base.h"
namespace kaleidoscope { namespace kaleidoscope {
@ -117,14 +118,25 @@ class Model100KeyScanner : public kaleidoscope::driver::keyscanner::Base<Model10
class Model100KeyScanner; class Model100KeyScanner;
#endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD #endif // ifndef KALEIDOSCOPE_VIRTUAL_BUILD
// Disable AbsoluteMouse by substituting in the noop base class until
// our usb enumeration is fixed
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 { struct Model100Props : public kaleidoscope::device::BaseProps {
typedef kaleidoscope::driver::hid::KeyboardioProps HIDProps; typedef Model100HIDProps HIDProps;
typedef kaleidoscope::driver::hid::Keyboardio<HIDProps> HID; typedef kaleidoscope::driver::hid::Keyboardio<HIDProps> HID;
typedef Model100LEDDriverProps LEDDriverProps; typedef Model100LEDDriverProps LEDDriverProps;
typedef Model100LEDDriver LEDDriver; typedef Model100LEDDriver LEDDriver;
typedef Model100KeyScannerProps KeyScannerProps; typedef Model100KeyScannerProps KeyScannerProps;
typedef Model100KeyScanner KeyScanner; typedef Model100KeyScanner KeyScanner;
typedef Model100StorageProps StorageProps; typedef Model100StorageProps StorageProps;
typedef kaleidoscope::driver::storage::GD32Flash<StorageProps> Storage; typedef kaleidoscope::driver::storage::GD32Flash<StorageProps> Storage;

Loading…
Cancel
Save