Module io_control

Source
Expand description

Safe wrappers for the underling ioctls

This module is intended for making custom device abstractions. If you’re using the provided Device abstraction you don’t have to use this module however mixing is not prohibited and should work.

Functions§

get_axis_count
Retrieve number of axis present. Calls JSIOCGAXES ioctl.
get_axis_mapping
Retrieve axes mapping. Calls JSIOCGAXMAP ioctl.
get_button_count
Retrieve number of buttons present. Calls JSIOCGBUTTONS ioctl.
get_button_mapping
Retrieve buttons mapping. Calls JSIOCGBTNMAP ioctl.
get_correction_values
Retrieve axes correction values. Calls JSIOCGCORR ioctl.
get_driver_version
Retrieve driver version. Calls JSIOCGVERSION ioctl.
get_event
Read an event. Calls read.
get_identifier
Retrieve device identifier. Calls JSIOCGNAME ioctl.
set_axis_mapping
Set axes mapping. Calls JSIOCSAXMAP ioctl.
set_button_mapping
Set buttons mapping. Calls JSIOCSBTNMAP ioctl.
set_correction_values
Set axes correction values. Calls JSIOCSCORR ioctl.