arsa  2.7
Public Types | Public Attributes | List of all members
irr::SJoystickInfo Struct Reference

Information on a joystick, returned from irr::IrrlichtDevice::activateJoysticks() More...

#include <IEventReceiver.h>

Public Types

enum  { POV_HAT_PRESENT, POV_HAT_ABSENT, POV_HAT_UNKNOWN }
 An indication of whether the joystick has a POV hat. More...
 

Public Attributes

u8 Joystick
 The ID of the joystick. More...
 
core::stringc Name
 The name that the joystick uses to identify itself. More...
 
u32 Buttons
 The number of buttons that the joystick has. More...
 
u32 Axes
 The number of axes that the joystick has, i.e. X, Y, Z, R, U, V. More...
 
enum irr::SJoystickInfo:: { ... }  PovHat
 An indication of whether the joystick has a POV hat. More...
 

Detailed Description

Information on a joystick, returned from irr::IrrlichtDevice::activateJoysticks()

Definition at line 621 of file IEventReceiver.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

An indication of whether the joystick has a POV hat.

A Windows device will identify the presence or absence of the POV hat. A Linux device cannot, and will always return POV_HAT_UNKNOWN.

Enumerator
POV_HAT_PRESENT 

A hat is definitely present.

POV_HAT_ABSENT 

A hat is definitely not present.

POV_HAT_UNKNOWN 

The presence or absence of a hat cannot be determined.

Definition at line 643 of file IEventReceiver.h.

644  {
647 
650 
653  } PovHat;
A hat is definitely present.
enum irr::SJoystickInfo::@4 PovHat
An indication of whether the joystick has a POV hat.
The presence or absence of a hat cannot be determined.
A hat is definitely not present.

Member Data Documentation

◆ Axes

u32 irr::SJoystickInfo::Axes

The number of axes that the joystick has, i.e. X, Y, Z, R, U, V.

Note: with a Linux device, the POV hat (if any) will use two axes. These will be included in this count.

Definition at line 638 of file IEventReceiver.h.

◆ Buttons

u32 irr::SJoystickInfo::Buttons

The number of buttons that the joystick has.

Definition at line 633 of file IEventReceiver.h.

◆ Joystick

u8 irr::SJoystickInfo::Joystick

The ID of the joystick.

This is an internal Irrlicht index; it does not map directly to any particular hardware joystick. It corresponds to the irr::SJoystickEvent Joystick ID.

Definition at line 627 of file IEventReceiver.h.

◆ Name

core::stringc irr::SJoystickInfo::Name

The name that the joystick uses to identify itself.

Definition at line 630 of file IEventReceiver.h.

◆ PovHat

enum { ... } irr::SJoystickInfo::PovHat

An indication of whether the joystick has a POV hat.

A Windows device will identify the presence or absence of the POV hat. A Linux device cannot, and will always return POV_HAT_UNKNOWN.


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