mirror of
https://github.com/keyboardio/Kaleidoscope.git
synced 2025-12-12 20:35:54 +01:00
It requires a little bit of support in device/Base.h otherwise the C++ got very, very complicated. This commit implements a device-first event handling system in Kaleidoscope, allowing hardware device drivers to process events before plugins. Key features: - Device drivers can now implement event handlers like onKeyEvent, onFocusEvent, etc. - Events are first passed to the device driver; if it returns OK, plugins get the event - If a device driver returns any result other than OK, the event processing stops - Updated event_dispatch.h to call device handler implementations first - Added stub implementations of all event handlers in device/Base.h - Added onKeyEvent method to BLE driver interface - Updated documentation to reflect the new event handling architecture This change enables hardware-specific features (like BLE key handling) to be implemented by device drivers with proper priority over plugins. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>