From f9158592e1478b2013afc7041d9ed041cf2d2f4a Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 13 Jan 2014 19:47:58 +1000 Subject: Update Irrlicht to 1.8.1. Include actual change markers this time. lol --- ...structirr_1_1_s_event_1_1_s_joystick_event.html | 299 +++++++++++++++++++++ 1 file changed, 299 insertions(+) create mode 100644 libraries/irrlicht-1.8.1/doc/html/structirr_1_1_s_event_1_1_s_joystick_event.html (limited to 'libraries/irrlicht-1.8.1/doc/html/structirr_1_1_s_event_1_1_s_joystick_event.html') diff --git a/libraries/irrlicht-1.8.1/doc/html/structirr_1_1_s_event_1_1_s_joystick_event.html b/libraries/irrlicht-1.8.1/doc/html/structirr_1_1_s_event_1_1_s_joystick_event.html new file mode 100644 index 0000000..6c06a17 --- /dev/null +++ b/libraries/irrlicht-1.8.1/doc/html/structirr_1_1_s_event_1_1_s_joystick_event.html @@ -0,0 +1,299 @@ + + + + +Irrlicht 3D Engine: irr::SEvent::SJoystickEvent Struct Reference + + + + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + + + + + + + +
+
Irrlicht 3D Engine + +
+ +
+ + + + + + +
+
+
+ + + + +
+
+ +
+
+
+ +
+
+ +
+
irr::SEvent::SJoystickEvent Struct Reference
+
+
+ +

A joystick event. + More...

+ +

#include <IEventReceiver.h>

+ +

List of all members.

+

+Public Types

+ +

+Public Member Functions

+ +

+Public Attributes

+ +

Detailed Description

+

A joystick event.

+

Unlike other events, joystick events represent the result of polling each connected joystick once per run() of the device. Joystick events will not be generated by default. If joystick support is available for the active device, _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ is defined, and irr::IrrlichtDevice::activateJoysticks() has been called, an event of this type will be generated once per joystick per IrrlichtDevice::run() regardless of whether the state of the joystick has actually changed.

+ +

Definition at line 342 of file IEventReceiver.h.

+

Member Enumeration Documentation

+ +
+
+ + + + +
anonymous enum
+
+
+
Enumerator:
+ + + + + + + + +
NUMBER_OF_BUTTONS  +
AXIS_X  +
AXIS_Y  +
AXIS_Z  +
AXIS_R  +
AXIS_U  +
AXIS_V  +
NUMBER_OF_AXES  +
+
+
+ +

Definition at line 344 of file IEventReceiver.h.

+ +
+
+

Member Function Documentation

+ +
+
+ + + + + + + + +
bool irr::SEvent::SJoystickEvent::IsButtonPressed (u32 button) const [inline]
+
+
+ +

A helper function to check if a button is pressed.

+ +

Definition at line 384 of file IEventReceiver.h.

+ +

References ButtonStates, and NUMBER_OF_BUTTONS.

+ +
+
+

Member Data Documentation

+ +
+
+ + + + +
s16 irr::SEvent::SJoystickEvent::Axis[NUMBER_OF_AXES]
+
+
+

For AXIS_X, AXIS_Y, AXIS_Z, AXIS_R, AXIS_U and AXIS_V Values are in the range -32768 to 32767, with 0 representing the center position. You will receive the raw value from the joystick, and so will usually want to implement a dead zone around the center of the range. Axes not supported by this joystick will always have a value of 0. On Linux, POV hats are represented as axes, usually the last two active axis.

+ +

Definition at line 369 of file IEventReceiver.h.

+ +
+
+ +
+ +
+

A bitmap of button states. You can use IsButtonPressed() to ( check the state of each button from 0 to (NUMBER_OF_BUTTONS - 1)

+ +

Definition at line 359 of file IEventReceiver.h.

+ +

Referenced by IsButtonPressed().

+ +
+
+ +
+ +
+ +

The ID of the joystick which generated this event.

+

This is an internal Irrlicht index; it does not map directly to any particular hardware joystick.

+ +

Definition at line 381 of file IEventReceiver.h.

+ +
+
+ +
+ +
+

The POV represents the angle of the POV hat in degrees * 100, from 0 to 35,900. A value of 65535 indicates that the POV hat is centered (or not present). This value is only supported on Windows. On Linux, the POV hat will be sent as 2 axes instead.

+ +

Definition at line 376 of file IEventReceiver.h.

+ +
+
+
The documentation for this struct was generated from the following file: +
+
+ + + + + -- cgit v1.1