-
Notifications
You must be signed in to change notification settings - Fork 53
Callbacks
HASUMI Hitoshi edited this page Sep 5, 2022
·
5 revisions
Feature | Version | When it runs |
---|---|---|
Keyboard#before_report |
0.9.0+ | Every time a key tapped |
Keyboard#on_start |
0.9.18+ | On start up of the keyboard |
Keyboard#signal_partner |
0.9.18+ | When a specific key is tapped |
kbd.before_report do
# Do something
end
kbd.on_start do
# Do something
end
kbd.signal_partner :KEYCODE do
# Do something on the partner half
# Naturally, this works only if kbd.split == true
end
You can find good examples on Sounder page.
- Getting started
- Keyboard features
- Keycodes (ja)
- Mouse (ja)
- Layers and mode key (ja)
- Debounce
- Composite key
- Split-type keyboard
- Keyscan matrix
- Num Lock, Caps Lock and Scroll Lock
- Useful methods that make you free
- BIOS mode
- Other features
- Examples
- Development
- Contribute to the Wiki
- FAQ