diff --git a/src/libratbag.h b/src/libratbag.h index 3ff51572..74fd44a1 100644 --- a/src/libratbag.h +++ b/src/libratbag.h @@ -1515,7 +1515,7 @@ ratbag_button_set_special(struct ratbag_button *button, * * @param button A previously initialized ratbag button * @param[out] modifiers Will be filled with the modifiers required for this - * action. The modifiers are as defined in linux/input.h. + * action. The modifiers are as defined in linux/input-event-codes.h. * @param[in,out] sz Takes the size of the modifiers array and returns the * number of modifiers filled in. sz may be 0 if no modifiers are required. * @@ -1534,10 +1534,10 @@ ratbag_button_get_key(const struct ratbag_button *button, * * @param button A previously initialized ratbag button * @param key The button number to assign to this button, one of BTN_* as - * defined in linux/input.h + * defined in linux/input-event-codes.h * @param modifiers The modifiers required for this action. The - * modifiers are as defined in linux/input.h, in the order they should be - * pressed. + * modifiers are as defined in linux/input-event-codes.h, in the order they + * should be pressed. * @param sz The size of the modifiers array. sz may be 0 if no modifiers * are required. * diff --git a/tools/ratbagc.py.in b/tools/ratbagc.py.in index 1fe943b8..a91939f9 100644 --- a/tools/ratbagc.py.in +++ b/tools/ratbagc.py.in @@ -780,8 +780,8 @@ class RatbagdButton(metaclass=MetaRatbag): class RatbagdMacro(metaclass=MetaRatbag): """Represents a button macro. Note that it uses keycodes as defined by - linux/input.h and not those used by X.Org or any other higher layer such as - Gdk.""" + linux/input-event-codes.h and not those used by X.Org or any other higher + layer such as Gdk.""" # Both a key press and release. _MACRO_KEY = 1000 diff --git a/tools/ratbagctl.body.py.in b/tools/ratbagctl.body.py.in index bfa6297f..fb7758f0 100755 --- a/tools/ratbagctl.body.py.in +++ b/tools/ratbagctl.body.py.in @@ -1280,7 +1280,7 @@ active profile if none is given.""", Macro syntax: A macro is a series of key events or waiting periods. - Keys must be specified in linux/input.h key names. + Keys must be specified in linux/input-event-codes.h key names. KEY_A Press and release 'a' +KEY_A Press 'a' -KEY_A Release 'a' diff --git a/tools/ratbagd.py b/tools/ratbagd.py index 88b0e68c..39d30d29 100644 --- a/tools/ratbagd.py +++ b/tools/ratbagd.py @@ -994,8 +994,8 @@ class RatbagdButton(_RatbagdDBus): class RatbagdMacro(GObject.Object): """Represents a button macro. Note that it uses keycodes as defined by - linux/input.h and not those used by X.Org or any other higher layer such as - Gdk.""" + linux/input-event-codes.h and not those used by X.Org or any other higher + layer such as Gdk.""" # Both a key press and release. _MACRO_KEY = 1000