Gets the identifier used by SDL mappings to discriminate game controller
devices.
the identifier used by SDL mappings
a #ManetteDevice
Gets the user mapping for @self, or default mapping if there isn't any. Can
return %NULL if there's no mapping.
the mapping for @self
a #ManetteDevice
Gets the device's name.
the name of @self, do not modify it or free it
a #ManetteDevice
Gets whether the device has the given input. If the input is present it means
that the device can send events for it regardless of whether the device is
mapped or not.
whether the device has the given input
a #ManetteDevice
the input type
the input code
Gets whether @self supports rumble.
whether @self supports rumble
a #ManetteDevice
Gets whether @self has a user mapping.
whether @self has a user mapping
a #ManetteDevice
Removes the user mapping for @self.
a #ManetteDevice
Make @self rumble during @milliseconds milliseconds, with the heavy and light
motors rumbling at their respectively defined magnitudes.
The duration cannot exceed 32767 milliseconds.
whether the rumble effect was played
a #ManetteDevice
the magnitude for the heavy motor
the magnitude for the light motor
the rumble effect play time in milliseconds
Saves @mapping_string as the user mapping for @self.
a #ManetteDevice
the mapping string
Emitted when an absolute axis' value changes.
the event emitted by the manette device
Emitted when a button is pressed.
the event emitted by the manette device
Emitted when a button is released.
the event emitted by the manette device
Emitted when the device is disconnected.
Emitted for any kind of event before mapping it.
the event emitted by the manette device
Emitted when a hat axis' value changes.
the event emitted by the manette device
Creates a copy of a #ManetteEvent.
a new #ManetteEvent
a #ManetteEvent
Frees @self.
a #ManetteEvent
Gets the axis of @self, if any.
whether the axis was retrieved
a #ManetteEvent
return location for the axis
return location for the axis
Gets the button of @self, if any.
whether the button was retrieved
a #ManetteEvent
return location for the button
Gets the #ManetteDevice associated with the @self.
the #ManetteDevice associated with the @self
a #ManetteEvent
Gets the event type of @self.
the event type of @self
a #ManetteEvent
Gets the hardware code of @self.
the hardware code of @self
a #ManetteEvent
Gets the hardware index of @self.
the hardware index of @self
a #ManetteEvent
Gets the hardware type of @self.
the hardware type of @self
a #ManetteEvent
Gets the hardware value of @self.
the hardware value of @self
a #ManetteEvent
Gets the hat of @self, if any.
whether the hat was retrieved
a #ManetteEvent
return location for the hat
return location for the hat
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.
the timestamp of when @self was received by the input driver
a #ManetteEvent
Specifies the type of the event.
a special code to indicate a null event
a button has been pressed
a button has been released
an absolute axis has been moved
a hat axis has been moved
Creates a new #ManetteMonitor object.
a new #ManetteMonitor
Creates a new #ManetteMonitorIter iterating on @self.
a new #ManetteMonitorIter iterating on @self
a #ManetteMonitor
Emitted when a device is connected.
a #ManetteDevice
Emitted when a device is disconnected.
a #ManetteDevice
Frees a #ManetteMonitorIter.
a #ManetteMonitorIter
Gets the next device from the device monitor iterator.
whether the next device was retrieved, if not, the end was reached
a #ManetteMonitorIter
return location for the device