Manette.Event – manette-0.2 Reference Manual
Packages
manette-0.2
Manette
Event
get_absolute
get_button
get_device
get_event_type
get_hardware_code
get_hardware_index
get_hardware_type
get_hardware_value
get_hat
get_time
Event
Object Hierarchy:
Description:
[
CCode
( copy_function =
"g_boxed_copy"
, free_function =
"g_boxed_free"
, type_id =
"manette_event_get_type ()"
) ]
[
Compact
]
public
class
Event
An event emitted by a [class@Device].
Namespace:
Manette
Package:
manette-0.2
Content:
Methods:
public
bool
get_absolute
(
out
uint16
axis,
out
double
value)
Gets the axis of
this
, if any.
public
bool
get_button
(
out
uint16
button)
Gets the button of
this
, if any.
public
unowned
Device
get_device
()
Gets the [class@Device] associated with the
this
.
public
EventType
get_event_type
()
Gets the event type of
this
.
public
uint16
get_hardware_code
()
Gets the hardware code of
this
.
public
uint16
get_hardware_index
()
Gets the hardware index of
this
.
public
uint16
get_hardware_type
()
Gets the hardware type of
this
.
public
uint16
get_hardware_value
()
Gets the hardware value of
this
.
public
bool
get_hat
(
out
uint16
axis,
out
int8
value)
Gets the hat of
this
, if any.
public
uint32
get_time
()
Gets the timestamp of when
this
was received by the input driver that takes care of its device.