This adds the following: - A character map driver API, which maps Unicode code points to behavior bindings. - A zmk,character-map driver which implements this API. This driver is designed for ROM efficiency, so it sends every value defined in the map to one behavior and passes any code point not in the map through to another. (A more flexible implementation that allows for a unique behavior binding per character could be added later if necessary.) - A zmk,send-string behavior, which users can define and bind to their keymaps to send strings. - A zmk_send_string() function, which queues the necessary behaviors to type a UTF-8 string. This is separated from the send string behavior since it could be used for other features such as Unicode key sequences, behaviors that print dynamic messages, etc.
25 lines
922 B
Text
25 lines
922 B
Text
#include <behaviors/key_press.dtsi>
|
|
#include <behaviors/key_toggle.dtsi>
|
|
#include <behaviors/transparent.dtsi>
|
|
#include <behaviors/none.dtsi>
|
|
#include <behaviors/mod_tap.dtsi>
|
|
#include <behaviors/layer_tap.dtsi>
|
|
#include <behaviors/gresc.dtsi>
|
|
#include <behaviors/sticky_key.dtsi>
|
|
#include <behaviors/momentary_layer.dtsi>
|
|
#include <behaviors/toggle_layer.dtsi>
|
|
#include <behaviors/to_layer.dtsi>
|
|
#include <behaviors/reset.dtsi>
|
|
#include <behaviors/sensor_rotate_key_press.dtsi>
|
|
#include <behaviors/rgb_underglow.dtsi>
|
|
#include <behaviors/bluetooth.dtsi>
|
|
#include <behaviors/ext_power.dtsi>
|
|
#include <behaviors/outputs.dtsi>
|
|
#include <behaviors/caps_word.dtsi>
|
|
#include <behaviors/key_repeat.dtsi>
|
|
#include <behaviors/backlight.dtsi>
|
|
#include <behaviors/macros.dtsi>
|
|
#include <behaviors/mouse_key_press.dtsi>
|
|
#include <behaviors/soft_off.dtsi>
|
|
#include <behaviors/character_map.dtsi>
|
|
#include <behaviors/send_string.dtsi>
|