Package: gtk

Function gtk:pad-controller-set-action

Lambda List

gtk:pad-controller-set-action (controller type index mode label name)

Arguments

controller -- a gtk:pad-controller object
type -- a gtk:pad-action-type value for the pad feature that will trigger the action
index -- an integer for the 0-indexed button/ring/strip number that will trigger the action
mode -- an integer for the mode that will trigger the action, or -1 for all modes
label -- a string for the Human readable description of the action, the string should be deemed user visible
name -- a string for the action name that will be activated in the g:action-group instance

Details

Adds an individual action to controller. The action will only be activated if the given button/ring/strip number in index is interacted while the current mode is mode. The -1 value may be used for simple cases, so the action is triggered on all modes.

The given label should be considered user visible, so internationalization rules apply. Some windowing systems may be able to use those for user feedback.
 

See also

2025-2-23