From b19a6ebcfc2e7d47f36625ce31ab1b87b446986c Mon Sep 17 00:00:00 2001 From: Jente Hidskes Date: Mon, 31 Jul 2017 14:29:27 +0200 Subject: [PATCH] DBusInterface: document Macro and SetMacro --- DBusInterface.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/DBusInterface.md b/DBusInterface.md index 5d611eb5..b31080ef 100644 --- a/DBusInterface.md +++ b/DBusInterface.md @@ -240,6 +240,11 @@ Enum describing the current special mapping (if mapped to special) Array of uints, first entry is the keycode, other entries, if any, are modifiers (if mapped to key) +#### `Macro` +-type: `a(uu)`, read-only, mutable + +Array of (type, keycode), where type may be one of +`RATBAG_MACRO_EVENT_KEY_PRESSED` or `RATBAG_MACRO_EVENT_KEY_RELEASED`. #### `ActionType` - type: `u`, read-only, mutable @@ -259,6 +264,9 @@ Set the button mapping to the given special entry #### `SetKeyMapping(au) → ()` Set the key mapping, first entry is the keycode, other entries, if any, are modifier keycodes +#### `SetMacro(a(uu)) → ()` +Set the macro, as an array of (type, key) where type may be one of +`RATBAG_MACRO_EVENT_KEY_PRESSED` or `RATBAG_MACRO_EVENT_KEY_RELEASED`. #### `Disable() → ()` Disable this button