-
public bool get_axis (double[] axes, AxisUse use, out double value)
Interprets an array of double as axis values for a given device, and locates the value in the array for
a given axis use.
-
public AxisUse get_axis_use (uint index)
Returns the axis use for index.
-
public bool get_has_cursor ()
Determines whether the pointer follows device motion.
-
public bool get_history (Window window, uint32 start, uint32 stop, out TimeCoord[] events)
Obtains the motion history for a device; given a starting and ending timestamp, return all events in the
motion history for the device in the given range of time. Some windowing systems do not support motion history, in which case,
false will be returned. (This is not distinguishable from the case where motion history is supported and no events were
found.)
-
public void get_key (uint index, out uint keyval, out ModifierType modifiers)
If index has a valid keyval, this function will fill in keyval and
modifiers with the keyval settings.
-
public InputMode get_mode ()
Determines the mode of the device.
-
public int get_n_axes ()
Gets the number of axes of a device.
-
public unowned string get_name ()
Determines the name of the device.
-
public InputSource get_source ()
Determines the type of the device.
-
public void get_state (Window window, double[] axes, out ModifierType mask)
-
public void set_axis_use (uint index_, AxisUse use)
-
public void set_key (uint index_, uint keyval, ModifierType modifiers)
-
public bool set_mode (InputMode mode)
-
public void set_source (InputSource source)