Struct SYN_Joystick¶
Generic Analog Joystick Context.
#include <syn_joystick.h>
Public Attributes¶
| Type | Name |
|---|---|
| uint16_t | adc_max |
| bool | button_pressed |
| uint16_t | center_x |
| uint16_t | center_y |
| int16_t | current_x_pct |
| int16_t | current_y_pct |
| uint16_t | deadband |
| SYN_JoystickDir | dir |
Public Attributes Documentation¶
variable adc_max¶
ADC resolution max (e.g. 4095)
variable button_pressed¶
Digital push button state
variable center_x¶
ADC zero-point center X
variable center_y¶
ADC zero-point center Y
variable current_x_pct¶
Calculated X percentage (-100 to +100%)
variable current_y_pct¶
Calculated Y percentage (-100 to +100%)
variable deadband¶
Noise deadband radius
variable dir¶
8-way directional state
The documentation for this class was generated from the following file src/syntropic/input/syn_joystick.h