Package: gtk

Function gtk:pad-controller-new

Lambda List

gtk:pad-controller-new (group &optional pad)

Arguments

group -- a g:action-group instance to trigger actions from
pad -- a gdk:device object of :tablet-pad type of the gdk:input-source enumeration, or the nil default value to handle all pads

Return Value

The newly created gtk:pad-controller object.

Details

Creates a new gtk:pad-controller object that will associate events from pad to actions. A NIL pad may be provided so the controller manages all pad devices generically, it is discouraged to mix gtk:pad-controller objects with NIL and non-NIL pad arguments on the same toplevel window, as execution order is not guaranteed.

The gtk:pad-controller object is created with no mapped actions. In order to map pad events to actions, use the gtk:pad-controller-set-action-entries or gtk:pad-controller-set-action functions.

Be aware that pad events will only be delivered to gtk:window widgets so adding a pad controller to any other type of widget will not have an effect.
 

See also

2025-2-23