Manette.Event

Fields

None

Methods

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 ()

Details

class Manette.Event
get_absolute()
Returns:

whether the axis was retrieved

axis:

return location for the axis

value:

return location for the axis

Return type:

(bool, axis: int, value: float)

Gets the axis of self, if any.

get_button()
Returns:

whether the button was retrieved

button:

return location for the button

Return type:

(bool, button: int)

Gets the button of self, if any.

get_device()
Returns:

the Manette.Device associated with the self

Return type:

Manette.Device

Gets the Manette.Device associated with the self.

get_event_type()
Returns:

the event type of self

Return type:

Manette.EventType

Gets the event type of self.

get_hardware_code()
Returns:

the hardware code of self

Return type:

int

Gets the hardware code of self.

get_hardware_index()
Returns:

the hardware index of self

Return type:

int

Gets the hardware index of self.

get_hardware_type()
Returns:

the hardware type of self

Return type:

int

Gets the hardware type of self.

get_hardware_value()
Returns:

the hardware value of self

Return type:

int

Gets the hardware value of self.

get_hat()
Returns:

whether the hat was retrieved

axis:

return location for the hat

value:

return location for the hat

Return type:

(bool, axis: int, value: int)

Gets the hat of self, if any.

get_time()
Returns:

the timestamp of when self was received by the input driver

Return type:

int

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.