set_device_events


Description:

[ Version ( since = "3.0" ) ]
public void set_device_events (Device device, EventMask event_mask)

Sets the event mask for a given device (Normally a floating device, not attached to any visible pointer) to this .

For example, an event mask including BUTTON_PRESS_MASK means the window should report button press events. The event mask is the bitwise OR of values from the EventMask enumeration.

See the input handling overview for details.

Parameters:

this

a Window

device

Device to enable events for.

event_mask

event mask for this