nomlib
Loading...
Searching...
No Matches
nom::JoystickAxisEvent Struct Reference

A structure containing information on a joystick axis motion event. More...

#include <Event.hpp>

Public Attributes

JoystickID id
 The joystick instance identifier.
uint8 axis
 Index of the axis on the device.
int16 value
 The current position of the axis.

Detailed Description

A structure containing information on a joystick axis motion event.

Definition at line 232 of file Event.hpp.

Member Data Documentation

◆ axis

uint8 nom::JoystickAxisEvent::axis

Index of the axis on the device.

See also
nom::JoystickAxis

Definition at line 240 of file Event.hpp.

◆ id

JoystickID nom::JoystickAxisEvent::id

The joystick instance identifier.

Definition at line 235 of file Event.hpp.

◆ value

int16 nom::JoystickAxisEvent::value

The current position of the axis.

Remarks
The range of the axis value is in between -32,768 to 32,767.

Definition at line 245 of file Event.hpp.


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