PadController


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "3.22" ) ]
public PadController (Window window, ActionGroup group, Device? pad)

Creates a new PadController that will associate events from pad to actions.

A null pad may be provided so the controller manages all pad devices generically, it is discouraged to mix PadController objects with null and non- null pad argument on the same window, as execution order is not guaranteed.

The PadController is created with no mapped actions. In order to map pad events to actions, use set_action_entries or set_action.

Parameters:

window

a Window

group

ActionGroup to trigger actions from

pad

A gdk_source_tablet_pad device, or null to handle all pads

Returns:

A newly created PadController