Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members | Tutorials

irr::SJoystickInfo Struct Reference

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

#include <IEventReceiver.h>

List of all members.

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

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

Detailed Description

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

Definition at line 446 of file IEventReceiver.h.


Member Enumeration Documentation

anonymous enum

An indication of whether the joystick has a POV hat.

A Windows device will identify the presence or absence or 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 468 of file IEventReceiver.h.


Member Data Documentation

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 463 of file IEventReceiver.h.

The number of buttons that the joystick has.

Definition at line 458 of file IEventReceiver.h.

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 452 of file IEventReceiver.h.

The name that the joystick uses to identify itself.

Definition at line 455 of file IEventReceiver.h.

An indication of whether the joystick has a POV hat.

A Windows device will identify the presence or absence or 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:

The Irrlicht Engine
The Irrlicht Engine Documentation © 2003-2010 by Nikolaus Gebhardt. Generated on Sun Jan 31 16:45:23 2010 by Doxygen (1.6.2)