Top |
ManetteEvent * | manette_event_copy () |
void | manette_event_free () |
ManetteEventType | manette_event_get_event_type () |
guint32 | manette_event_get_time () |
ManetteDevice * | manette_event_get_device () |
guint16 | manette_event_get_hardware_type () |
guint16 | manette_event_get_hardware_code () |
guint16 | manette_event_get_hardware_value () |
guint16 | manette_event_get_hardware_index () |
gboolean | manette_event_get_button () |
gboolean | manette_event_get_absolute () |
gboolean | manette_event_get_hat () |
ManetteEvent *
manette_event_copy (const ManetteEvent *self
);
Creates a copy of a ManetteEvent.
[skip]
ManetteEventType
manette_event_get_event_type (const ManetteEvent *self
);
Gets the event type of self
.
guint32
manette_event_get_time (const ManetteEvent *self
);
Gets the timestamp of when self
was received by the input driver that takes
care of its device. Use this timestamp to ensure external factors such as
synchronous disk writes don't influence your timing computations.
ManetteDevice *
manette_event_get_device (const ManetteEvent *self
);
Gets the ManetteDevice associated with the self
.
guint16
manette_event_get_hardware_type (const ManetteEvent *self
);
Gets the hardware type of self
.
guint16
manette_event_get_hardware_code (const ManetteEvent *self
);
Gets the hardware code of self
.
guint16
manette_event_get_hardware_value (const ManetteEvent *self
);
Gets the hardware value of self
.
guint16
manette_event_get_hardware_index (const ManetteEvent *self
);
Gets the hardware index of self
.
gboolean manette_event_get_button (const ManetteEvent *self
,guint16 *button
);
Gets the button of self
, if any.
gboolean manette_event_get_absolute (const ManetteEvent *self
,guint16 *axis
,gdouble *value
);
Gets the axis of self
, if any.
gboolean manette_event_get_hat (const ManetteEvent *self
,guint16 *axis
,gint8 *value
);
Gets the hat of self
, if any.