Instrument Neutral Distributed Interface INDI 2.2.5
Public Attributes | List of all members
JoyAxisPair Struct Reference

A matched pair of axis indices that together form a joystick. More...

#include <joystickdriver.h>

Public Attributes

int i0
 Index of the horizontal (X) axis.
 
int i1
 Index of the vertical (Y) axis.
 
uint8_t absX
 ABS_* code for the X axis.
 
uint8_t absY
 ABS_* code for the Y axis.
 
bool isHat
 True for digital hat / d-pad pairs.
 
const char * name
 Human-readable name (e.g. "Left Stick")
 

Detailed Description

A matched pair of axis indices that together form a joystick.

Definition at line 91 of file joystickdriver.h.

Member Data Documentation

◆ absX

uint8_t JoyAxisPair::absX

ABS_* code for the X axis.

Definition at line 95 of file joystickdriver.h.

◆ absY

uint8_t JoyAxisPair::absY

ABS_* code for the Y axis.

Definition at line 96 of file joystickdriver.h.

◆ i0

int JoyAxisPair::i0

Index of the horizontal (X) axis.

Definition at line 93 of file joystickdriver.h.

◆ i1

int JoyAxisPair::i1

Index of the vertical (Y) axis.

Definition at line 94 of file joystickdriver.h.

◆ isHat

bool JoyAxisPair::isHat

True for digital hat / d-pad pairs.

Definition at line 97 of file joystickdriver.h.

◆ name

const char* JoyAxisPair::name

Human-readable name (e.g. "Left Stick")

Definition at line 98 of file joystickdriver.h.


The documentation for this struct was generated from the following file: