Module dash.wheel
wheel module
See also:
Functions
| get_analog_input_count () | Get the number of analog inputs. |
| get_analog_input (input) | Get analog input value. |
| get_raw_analog_input (input) | Get raw analog input value. |
| get_analog_input_type (input) | Get analog input type. |
| get_raw_digital_input_count () | Get the number of raw digital inputs. |
| get_raw_digital_input (input) | Get raw digital input value. |
| get_digital_input_count () | Get the number of digital inputs. |
| get_digital_input (input) | Get digital input value. |
| get_touch_input () | Get touch input. |
| enable_mouse_input (enable) | Enable mouse input. |
Functions
- get_analog_input_count ()
-
Get the number of analog inputs.
Returns:
-
int
the analog input count
- get_analog_input (input)
-
Get analog input value.
Parameters:
- input int the analog input index
Returns:
-
int
the analog input value
- get_raw_analog_input (input)
-
Get raw analog input value.
Parameters:
- input int the analog input index
Returns:
-
int
the raw analog input value
- get_analog_input_type (input)
-
Get analog input type.
Parameters:
- input int the analog input index
Returns:
-
string
the input type. One of "none", "throttle", "brake", "clutch\_m", "clutch\_s", "bite\_point".
- get_raw_digital_input_count ()
-
Get the number of raw digital inputs.
Returns:
-
int
the raw digital input count
- get_raw_digital_input (input)
-
Get raw digital input value.
Parameters:
- input int the digital input index
Returns:
-
int
the raw digital input value
- get_digital_input_count ()
-
Get the number of digital inputs.
Returns:
-
int
the digital input count
- get_digital_input (input)
-
Get digital input value.
Parameters:
- input int the digital input index
Returns:
-
int
the digital input value
- get_touch_input ()
-
Get touch input.
Returns:
- int X coordinate
- int Y coordinate
- bool pressed
- enable_mouse_input (enable)
-
Enable mouse input.
Parameters:
- enable bool enable or disable mouse input