Skip to content

Struct SYN_Joystick

ClassList > 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

uint16_t SYN_Joystick::adc_max;

ADC resolution max (e.g. 4095)


variable button_pressed

bool SYN_Joystick::button_pressed;

Digital push button state


variable center_x

uint16_t SYN_Joystick::center_x;

ADC zero-point center X


variable center_y

uint16_t SYN_Joystick::center_y;

ADC zero-point center Y


variable current_x_pct

int16_t SYN_Joystick::current_x_pct;

Calculated X percentage (-100 to +100%)


variable current_y_pct

int16_t SYN_Joystick::current_y_pct;

Calculated Y percentage (-100 to +100%)


variable deadband

uint16_t SYN_Joystick::deadband;

Noise deadband radius


variable dir

SYN_JoystickDir SYN_Joystick::dir;

8-way directional state



The documentation for this class was generated from the following file src/syntropic/input/syn_joystick.h