QJoysticks
A simple way to use joysticks with your Qt application
Public Attributes | List of all members
QJoystickAxisEvent Struct Reference

Represents an axis event that can be triggered by a joystick. More...

#include <JoysticksCommon.h>

Public Attributes

int axis
 
qreal value
 
QJoystickDevicejoystick
 

Detailed Description

Represents an axis event that can be triggered by a joystick.

This structure contains:

Member Data Documentation

int QJoystickAxisEvent::axis

The numerical ID of the axis

Referenced by SDL_Joysticks::getAxisEvent(), QJoysticks::onAxisEvent(), and VirtualJoystick::readAxes().

QJoystickDevice* QJoystickAxisEvent::joystick

Pointer to the device that caused the event

Referenced by QJoysticks::onAxisEvent().

qreal QJoystickAxisEvent::value

The value (from -1 to 1) of the axis

Referenced by QJoysticks::onAxisEvent().


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