1
0
forked from drath/libratbag

DBusInterface: document Macro and SetMacro

This commit is contained in:
Jente Hidskes
2017-07-31 14:29:27 +02:00
committed by Peter Hutterer
parent 811281372b
commit b19a6ebcfc

View File

@@ -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