Event Configuration
RMK allows you to tune event channel parameters in keyboard.toml based on your specific needs and hardware constraints.
For an overview of events and how to define custom events, see the Event documentation.
Configuration Parameters
Each event channel has three configurable parameters:
channel_size: Buffer size - how many events can be queuedpubs: Number of publishers - how many concurrent tasks can publishsubs: Number of subscribers - how many concurrent tasks can subscribe
Each event has default values for typical use cases. You can view all defaults in rmk-config/src/default_config/event_default.toml.
Configuration Syntax
Add an [event] section to your keyboard.toml:
Examples:
Configurable Event Names
Related Documentation
- Event - Event concepts, built-in events, and custom event definition
- Input Device - How to create input devices that publish events
- Processor - How to create processors that subscribe to events