Loading...
Searching...
No Matches
IEventReceiver.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_EVENT_RECEIVER_H_INCLUDED__
#define __I_EVENT_RECEIVER_H_INCLUDED__
#include "ILogger.h"
#include "Keycodes.h"
#include "irrString.h"
namespace irr
{
enum EEVENT_TYPE
{
EET_GUI_EVENT = 0,
EET_MOUSE_INPUT_EVENT,
EET_KEY_INPUT_EVENT,
EET_JOYSTICK_INPUT_EVENT,
EET_LOG_TEXT_EVENT,
EET_USER_EVENT,
EGUIET_FORCE_32_BIT = 0x7fffffff
};
enum EMOUSE_INPUT_EVENT
{
EMIE_LMOUSE_PRESSED_DOWN = 0,
EMIE_RMOUSE_PRESSED_DOWN,
EMIE_MMOUSE_PRESSED_DOWN,
EMIE_LMOUSE_LEFT_UP,
EMIE_RMOUSE_LEFT_UP,
EMIE_MMOUSE_LEFT_UP,
EMIE_MOUSE_MOVED,
EMIE_MOUSE_WHEEL,
EMIE_LMOUSE_DOUBLE_CLICK,
EMIE_RMOUSE_DOUBLE_CLICK,
EMIE_MMOUSE_DOUBLE_CLICK,
EMIE_LMOUSE_TRIPLE_CLICK,
EMIE_RMOUSE_TRIPLE_CLICK,
EMIE_MMOUSE_TRIPLE_CLICK,
EMIE_COUNT
};
enum E_MOUSE_BUTTON_STATE_MASK
{
EMBSM_LEFT = 0x01,
EMBSM_RIGHT = 0x02,
EMBSM_MIDDLE = 0x04,
EMBSM_EXTRA1 = 0x08,
EMBSM_EXTRA2 = 0x10,
EMBSM_FORCE_32_BIT = 0x7fffffff
};
namespace gui
{
class IGUIElement;
enum EGUI_EVENT_TYPE
{
EGET_ELEMENT_FOCUS_LOST = 0,
EGET_ELEMENT_FOCUSED,
EGET_ELEMENT_HOVERED,
EGET_ELEMENT_LEFT,
EGET_ELEMENT_CLOSED,
EGET_BUTTON_CLICKED,
EGET_SCROLL_BAR_CHANGED,
EGET_CHECKBOX_CHANGED,
EGET_LISTBOX_CHANGED,
EGET_LISTBOX_SELECTED_AGAIN,
EGET_FILE_SELECTED,
EGET_DIRECTORY_SELECTED,
EGET_FILE_CHOOSE_DIALOG_CANCELLED,
EGET_MESSAGEBOX_YES,
EGET_MESSAGEBOX_NO,
EGET_MESSAGEBOX_OK,
EGET_MESSAGEBOX_CANCEL,
EGET_EDITBOX_ENTER,
EGET_EDITBOX_CHANGED,
EGET_EDITBOX_MARKING_CHANGED,
EGET_TAB_CHANGED,
EGET_MENU_ITEM_SELECTED,
EGET_COMBO_BOX_CHANGED,
EGET_SPINBOX_CHANGED,
EGET_TABLE_CHANGED,
EGET_TABLE_HEADER_CHANGED,
EGET_TABLE_SELECTED_AGAIN,
EGET_TREEVIEW_NODE_DESELECT,
EGET_TREEVIEW_NODE_SELECT,
EGET_TREEVIEW_NODE_EXPAND,
EGET_TREEVIEW_NODE_COLLAPSE,
EGET_TREEVIEW_NODE_COLLAPS = EGET_TREEVIEW_NODE_COLLAPSE,
EGET_COUNT
};
} // end namespace gui
struct SEvent
{
struct SGUIEvent
{
gui::IGUIElement* Caller;
gui::IGUIElement* Element;
gui::EGUI_EVENT_TYPE EventType;
};
struct SMouseInput
{
s32 X;
s32 Y;
f32 Wheel;
bool Shift:1;
bool Control:1;
u32 ButtonStates;
bool isLeftPressed() const { return 0 != ( ButtonStates & EMBSM_LEFT ); }
bool isRightPressed() const { return 0 != ( ButtonStates & EMBSM_RIGHT ); }
bool isMiddlePressed() const { return 0 != ( ButtonStates & EMBSM_MIDDLE ); }
EMOUSE_INPUT_EVENT Event;
};
struct SKeyInput
{
wchar_t Char;
EKEY_CODE Key;
bool PressedDown:1;
bool Shift:1;
bool Control:1;
};
struct SJoystickEvent
{
enum
{
NUMBER_OF_BUTTONS = 32,
AXIS_X = 0, // e.g. analog stick 1 left to right
AXIS_Y, // e.g. analog stick 1 top to bottom
AXIS_Z, // e.g. throttle, or analog 2 stick 2 left to right
AXIS_R, // e.g. rudder, or analog 2 stick 2 top to bottom
AXIS_U,
AXIS_V,
NUMBER_OF_AXES
};
u32 ButtonStates;
s16 Axis[NUMBER_OF_AXES];
u16 POV;
u8 Joystick;
bool IsButtonPressed(u32 button) const
{
if(button >= (u32)NUMBER_OF_BUTTONS)
return false;
return (ButtonStates & (1 << button)) ? true : false;
}
};
struct SLogEvent
{
const c8* Text;
ELOG_LEVEL Level;
};
struct SUserEvent
{
s32 UserData1;
s32 UserData2;
};
EEVENT_TYPE EventType;
union
{
struct SGUIEvent GUIEvent;
struct SMouseInput MouseInput;
struct SKeyInput KeyInput;
struct SJoystickEvent JoystickEvent;
struct SLogEvent LogEvent;
struct SUserEvent UserEvent;
};
};
class IEventReceiver
{
public:
virtual ~IEventReceiver() {}
virtual bool OnEvent(const SEvent& event) = 0;
};
struct SJoystickInfo
{
u8 Joystick;
core::stringc Name;
u32 Buttons;
u32 Axes;
enum
{
POV_HAT_PRESENT,
POV_HAT_ABSENT,
POV_HAT_UNKNOWN
} PovHat;
}; // struct SJoystickInfo
} // end namespace irr
#endif
ILogger.h
Keycodes.h
irr::IEventReceiver
Interface of an object which can receive events.
Definition IEventReceiver.h:434
irr::IEventReceiver::~IEventReceiver
virtual ~IEventReceiver()
Destructor.
Definition IEventReceiver.h:438
irr::IEventReceiver::OnEvent
virtual bool OnEvent(const SEvent &event)=0
Called if an event happened.
irr::gui::IGUIElement
Base class of all GUI elements.
Definition IGUIElement.h:26
irrString.h
irr::core::stringc
string< c8 > stringc
Typedef for character strings.
Definition irrString.h:1358
irr::gui::EGUI_EVENT_TYPE
EGUI_EVENT_TYPE
Enumeration for all events which are sendable by the gui system.
Definition IEventReceiver.h:152
irr::gui::EGET_TREEVIEW_NODE_SELECT
@ EGET_TREEVIEW_NODE_SELECT
A tree view node was selected. See IGUITreeView::getLastEventNode().
Definition IEventReceiver.h:243
irr::gui::EGET_DIRECTORY_SELECTED
@ EGET_DIRECTORY_SELECTED
A directory has been selected in the file dialog.
Definition IEventReceiver.h:196
irr::gui::EGET_CHECKBOX_CHANGED
@ EGET_CHECKBOX_CHANGED
A checkbox has changed its check state.
Definition IEventReceiver.h:182
irr::gui::EGET_SCROLL_BAR_CHANGED
@ EGET_SCROLL_BAR_CHANGED
A scrollbar has changed its position.
Definition IEventReceiver.h:179
irr::gui::EGET_BUTTON_CLICKED
@ EGET_BUTTON_CLICKED
A button was clicked.
Definition IEventReceiver.h:176
irr::gui::EGET_TREEVIEW_NODE_EXPAND
@ EGET_TREEVIEW_NODE_EXPAND
A tree view node was expanded. See IGUITreeView::getLastEventNode().
Definition IEventReceiver.h:246
irr::gui::EGET_EDITBOX_CHANGED
@ EGET_EDITBOX_CHANGED
The text in an editbox was changed. This does not include automatic changes in text-breaking.
Definition IEventReceiver.h:217
irr::gui::EGET_LISTBOX_SELECTED_AGAIN
@ EGET_LISTBOX_SELECTED_AGAIN
An item in the listbox was selected, which was already selected.
Definition IEventReceiver.h:190
irr::gui::EGET_COUNT
@ EGET_COUNT
No real event. Just for convenience to get number of events.
Definition IEventReceiver.h:256
irr::gui::EGET_MESSAGEBOX_NO
@ EGET_MESSAGEBOX_NO
'No' was clicked on a messagebox
Definition IEventReceiver.h:205
irr::gui::EGET_TABLE_CHANGED
@ EGET_TABLE_CHANGED
A table has changed.
Definition IEventReceiver.h:235
irr::gui::EGET_MESSAGEBOX_OK
@ EGET_MESSAGEBOX_OK
'OK' was clicked on a messagebox
Definition IEventReceiver.h:208
irr::gui::EGET_FILE_SELECTED
@ EGET_FILE_SELECTED
A file has been selected in the file dialog.
Definition IEventReceiver.h:193
irr::gui::EGET_ELEMENT_HOVERED
@ EGET_ELEMENT_HOVERED
The mouse cursor hovered over a gui element.
Definition IEventReceiver.h:164
irr::gui::EGET_TAB_CHANGED
@ EGET_TAB_CHANGED
The tab was changed in an tab control.
Definition IEventReceiver.h:223
irr::gui::EGET_MENU_ITEM_SELECTED
@ EGET_MENU_ITEM_SELECTED
A menu item was selected in a (context) menu.
Definition IEventReceiver.h:226
irr::gui::EGET_TREEVIEW_NODE_DESELECT
@ EGET_TREEVIEW_NODE_DESELECT
A tree view node lost selection. See IGUITreeView::getLastEventNode().
Definition IEventReceiver.h:240
irr::gui::EGET_ELEMENT_CLOSED
@ EGET_ELEMENT_CLOSED
An element would like to close.
Definition IEventReceiver.h:173
irr::gui::EGET_SPINBOX_CHANGED
@ EGET_SPINBOX_CHANGED
The value of a spin box has changed.
Definition IEventReceiver.h:232
irr::gui::EGET_ELEMENT_FOCUSED
@ EGET_ELEMENT_FOCUSED
A gui element has got the focus.
Definition IEventReceiver.h:160
irr::gui::EGET_TABLE_SELECTED_AGAIN
@ EGET_TABLE_SELECTED_AGAIN
Definition IEventReceiver.h:237
irr::gui::EGET_MESSAGEBOX_YES
@ EGET_MESSAGEBOX_YES
'Yes' was clicked on a messagebox
Definition IEventReceiver.h:202
irr::gui::EGET_ELEMENT_LEFT
@ EGET_ELEMENT_LEFT
The mouse cursor left the hovered element.
Definition IEventReceiver.h:168
irr::gui::EGET_MESSAGEBOX_CANCEL
@ EGET_MESSAGEBOX_CANCEL
'Cancel' was clicked on a messagebox
Definition IEventReceiver.h:211
irr::gui::EGET_LISTBOX_CHANGED
@ EGET_LISTBOX_CHANGED
A new item in a listbox was selected.
Definition IEventReceiver.h:186
irr::gui::EGET_EDITBOX_ENTER
@ EGET_EDITBOX_ENTER
In an editbox 'ENTER' was pressed.
Definition IEventReceiver.h:214
irr::gui::EGET_TREEVIEW_NODE_COLLAPSE
@ EGET_TREEVIEW_NODE_COLLAPSE
A tree view node was collapsed. See IGUITreeView::getLastEventNode().
Definition IEventReceiver.h:249
irr::gui::EGET_EDITBOX_MARKING_CHANGED
@ EGET_EDITBOX_MARKING_CHANGED
The marked area in an editbox was changed.
Definition IEventReceiver.h:220
irr::gui::EGET_FILE_CHOOSE_DIALOG_CANCELLED
@ EGET_FILE_CHOOSE_DIALOG_CANCELLED
A file open dialog has been closed without choosing a file.
Definition IEventReceiver.h:199
irr::gui::EGET_ELEMENT_FOCUS_LOST
@ EGET_ELEMENT_FOCUS_LOST
A gui element has lost its focus.
Definition IEventReceiver.h:156
irr::gui::EGET_TREEVIEW_NODE_COLLAPS
@ EGET_TREEVIEW_NODE_COLLAPS
Definition IEventReceiver.h:253
irr::gui::EGET_COMBO_BOX_CHANGED
@ EGET_COMBO_BOX_CHANGED
The selection in a combo box has been changed.
Definition IEventReceiver.h:229
irr::gui::EGET_TABLE_HEADER_CHANGED
@ EGET_TABLE_HEADER_CHANGED
Definition IEventReceiver.h:236
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::f32
float f32
32 bit floating point variable.
Definition irrTypes.h:104
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
irr::EMOUSE_INPUT_EVENT
EMOUSE_INPUT_EVENT
Enumeration for all mouse input events.
Definition IEventReceiver.h:75
irr::EMIE_LMOUSE_TRIPLE_CLICK
@ EMIE_LMOUSE_TRIPLE_CLICK
Definition IEventReceiver.h:115
irr::EMIE_MMOUSE_LEFT_UP
@ EMIE_MMOUSE_LEFT_UP
Middle mouse button was left up.
Definition IEventReceiver.h:92
irr::EMIE_LMOUSE_LEFT_UP
@ EMIE_LMOUSE_LEFT_UP
Left mouse button was left up.
Definition IEventReceiver.h:86
irr::EMIE_COUNT
@ EMIE_COUNT
No real event. Just for convenience to get number of events.
Definition IEventReceiver.h:126
irr::EMIE_MMOUSE_PRESSED_DOWN
@ EMIE_MMOUSE_PRESSED_DOWN
Middle mouse button was pressed down.
Definition IEventReceiver.h:83
irr::EMIE_LMOUSE_PRESSED_DOWN
@ EMIE_LMOUSE_PRESSED_DOWN
Left mouse button was pressed down.
Definition IEventReceiver.h:77
irr::EMIE_LMOUSE_DOUBLE_CLICK
@ EMIE_LMOUSE_DOUBLE_CLICK
Definition IEventReceiver.h:103
irr::EMIE_MMOUSE_TRIPLE_CLICK
@ EMIE_MMOUSE_TRIPLE_CLICK
Definition IEventReceiver.h:123
irr::EMIE_MMOUSE_DOUBLE_CLICK
@ EMIE_MMOUSE_DOUBLE_CLICK
Definition IEventReceiver.h:111
irr::EMIE_RMOUSE_DOUBLE_CLICK
@ EMIE_RMOUSE_DOUBLE_CLICK
Definition IEventReceiver.h:107
irr::EMIE_RMOUSE_TRIPLE_CLICK
@ EMIE_RMOUSE_TRIPLE_CLICK
Definition IEventReceiver.h:119
irr::EMIE_RMOUSE_PRESSED_DOWN
@ EMIE_RMOUSE_PRESSED_DOWN
Right mouse button was pressed down.
Definition IEventReceiver.h:80
irr::EMIE_MOUSE_WHEEL
@ EMIE_MOUSE_WHEEL
Definition IEventReceiver.h:99
irr::EMIE_RMOUSE_LEFT_UP
@ EMIE_RMOUSE_LEFT_UP
Right mouse button was left up.
Definition IEventReceiver.h:89
irr::EMIE_MOUSE_MOVED
@ EMIE_MOUSE_MOVED
The mouse cursor changed its position.
Definition IEventReceiver.h:95
irr::s16
signed short s16
16 bit signed variable.
Definition irrTypes.h:48
irr::EKEY_CODE
EKEY_CODE
Definition Keycodes.h:12
irr::u8
unsigned char u8
8 bit unsigned variable.
Definition irrTypes.h:18
irr::E_MOUSE_BUTTON_STATE_MASK
E_MOUSE_BUTTON_STATE_MASK
Masks for mouse button states.
Definition IEventReceiver.h:131
irr::EMBSM_FORCE_32_BIT
@ EMBSM_FORCE_32_BIT
Definition IEventReceiver.h:142
irr::EMBSM_RIGHT
@ EMBSM_RIGHT
Definition IEventReceiver.h:133
irr::EMBSM_EXTRA1
@ EMBSM_EXTRA1
currently only on windows
Definition IEventReceiver.h:137
irr::EMBSM_EXTRA2
@ EMBSM_EXTRA2
currently only on windows
Definition IEventReceiver.h:140
irr::EMBSM_LEFT
@ EMBSM_LEFT
Definition IEventReceiver.h:132
irr::EMBSM_MIDDLE
@ EMBSM_MIDDLE
Definition IEventReceiver.h:134
irr::c8
char c8
8 bit character variable.
Definition irrTypes.h:31
irr::ELOG_LEVEL
ELOG_LEVEL
Definition ILogger.h:18
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
irr::EEVENT_TYPE
EEVENT_TYPE
Enumeration for all event types there are.
Definition IEventReceiver.h:16
irr::EET_USER_EVENT
@ EET_USER_EVENT
A user event with user data.
Definition IEventReceiver.h:65
irr::EET_KEY_INPUT_EVENT
@ EET_KEY_INPUT_EVENT
A key input event.
Definition IEventReceiver.h:35
irr::EGUIET_FORCE_32_BIT
@ EGUIET_FORCE_32_BIT
Definition IEventReceiver.h:69
irr::EET_LOG_TEXT_EVENT
@ EET_LOG_TEXT_EVENT
A log event.
Definition IEventReceiver.h:50
irr::EET_MOUSE_INPUT_EVENT
@ EET_MOUSE_INPUT_EVENT
A mouse input event.
Definition IEventReceiver.h:30
irr::EET_JOYSTICK_INPUT_EVENT
@ EET_JOYSTICK_INPUT_EVENT
A joystick (joypad, gamepad) input event.
Definition IEventReceiver.h:45
irr::EET_GUI_EVENT
@ EET_GUI_EVENT
An event of the graphical user interface.
Definition IEventReceiver.h:22
irr::u16
unsigned short u16
16 bit unsigned variable.
Definition irrTypes.h:40
irr::SEvent::SGUIEvent
Any kind of GUI event.
Definition IEventReceiver.h:266
irr::SEvent::SGUIEvent::Caller
gui::IGUIElement * Caller
IGUIElement who called the event.
Definition IEventReceiver.h:268
irr::SEvent::SGUIEvent::Element
gui::IGUIElement * Element
If the event has something to do with another element, it will be held here.
Definition IEventReceiver.h:271
irr::SEvent::SGUIEvent::EventType
gui::EGUI_EVENT_TYPE EventType
Type of GUI Event.
Definition IEventReceiver.h:274
irr::SEvent::SJoystickEvent
A joystick event.
Definition IEventReceiver.h:343
irr::SEvent::SJoystickEvent::Joystick
u8 Joystick
The ID of the joystick which generated this event.
Definition IEventReceiver.h:381
irr::SEvent::SJoystickEvent::Axis
s16 Axis[NUMBER_OF_AXES]
Definition IEventReceiver.h:369
irr::SEvent::SJoystickEvent::ButtonStates
u32 ButtonStates
Definition IEventReceiver.h:359
irr::SEvent::SJoystickEvent::IsButtonPressed
bool IsButtonPressed(u32 button) const
A helper function to check if a button is pressed.
Definition IEventReceiver.h:384
irr::SEvent::SJoystickEvent::AXIS_V
@ AXIS_V
Definition IEventReceiver.h:353
irr::SEvent::SJoystickEvent::AXIS_X
@ AXIS_X
Definition IEventReceiver.h:348
irr::SEvent::SJoystickEvent::NUMBER_OF_AXES
@ NUMBER_OF_AXES
Definition IEventReceiver.h:354
irr::SEvent::SJoystickEvent::AXIS_U
@ AXIS_U
Definition IEventReceiver.h:352
irr::SEvent::SJoystickEvent::AXIS_Y
@ AXIS_Y
Definition IEventReceiver.h:349
irr::SEvent::SJoystickEvent::AXIS_Z
@ AXIS_Z
Definition IEventReceiver.h:350
irr::SEvent::SJoystickEvent::AXIS_R
@ AXIS_R
Definition IEventReceiver.h:351
irr::SEvent::SJoystickEvent::NUMBER_OF_BUTTONS
@ NUMBER_OF_BUTTONS
Definition IEventReceiver.h:346
irr::SEvent::SJoystickEvent::POV
u16 POV
Definition IEventReceiver.h:376
irr::SEvent::SKeyInput
Any kind of keyboard event.
Definition IEventReceiver.h:317
irr::SEvent::SKeyInput::Char
wchar_t Char
Character corresponding to the key (0, if not a character).
Definition IEventReceiver.h:319
irr::SEvent::SKeyInput::Control
bool Control
True if ctrl was also pressed.
Definition IEventReceiver.h:331
irr::SEvent::SKeyInput::Shift
bool Shift
True if shift was also pressed.
Definition IEventReceiver.h:328
irr::SEvent::SKeyInput::Key
EKEY_CODE Key
Key which has been pressed or released.
Definition IEventReceiver.h:322
irr::SEvent::SKeyInput::PressedDown
bool PressedDown
If not true, then the key was left up.
Definition IEventReceiver.h:325
irr::SEvent::SLogEvent
Any kind of log event.
Definition IEventReceiver.h:396
irr::SEvent::SLogEvent::Text
const c8 * Text
Pointer to text which has been logged.
Definition IEventReceiver.h:398
irr::SEvent::SLogEvent::Level
ELOG_LEVEL Level
Log level in which the text has been logged.
Definition IEventReceiver.h:401
irr::SEvent::SMouseInput
Any kind of mouse event.
Definition IEventReceiver.h:280
irr::SEvent::SMouseInput::Wheel
f32 Wheel
mouse wheel delta, often 1.0 or -1.0, but can have other values < 0.f or > 0.f;
Definition IEventReceiver.h:289
irr::SEvent::SMouseInput::isRightPressed
bool isRightPressed() const
Is the right button pressed down?
Definition IEventReceiver.h:306
irr::SEvent::SMouseInput::Y
s32 Y
Y position of mouse cursor.
Definition IEventReceiver.h:285
irr::SEvent::SMouseInput::Control
bool Control
True if ctrl was also pressed.
Definition IEventReceiver.h:295
irr::SEvent::SMouseInput::isMiddlePressed
bool isMiddlePressed() const
Is the middle button pressed down?
Definition IEventReceiver.h:309
irr::SEvent::SMouseInput::X
s32 X
X position of mouse cursor.
Definition IEventReceiver.h:282
irr::SEvent::SMouseInput::isLeftPressed
bool isLeftPressed() const
Is the left button pressed down?
Definition IEventReceiver.h:303
irr::SEvent::SMouseInput::Event
EMOUSE_INPUT_EVENT Event
Type of mouse event.
Definition IEventReceiver.h:312
irr::SEvent::SMouseInput::ButtonStates
u32 ButtonStates
Definition IEventReceiver.h:300
irr::SEvent::SMouseInput::Shift
bool Shift
True if shift was also pressed.
Definition IEventReceiver.h:292
irr::SEvent::SUserEvent
Any kind of user event.
Definition IEventReceiver.h:406
irr::SEvent::SUserEvent::UserData2
s32 UserData2
Another user specified data as int.
Definition IEventReceiver.h:411
irr::SEvent::SUserEvent::UserData1
s32 UserData1
Some user specified data as int.
Definition IEventReceiver.h:408
irr::SEvent
SEvents hold information about an event. See irr::IEventReceiver for details on event handling.
Definition IEventReceiver.h:263
irr::SEvent::UserEvent
struct SUserEvent UserEvent
Definition IEventReceiver.h:422
irr::SEvent::JoystickEvent
struct SJoystickEvent JoystickEvent
Definition IEventReceiver.h:420
irr::SEvent::MouseInput
struct SMouseInput MouseInput
Definition IEventReceiver.h:418
irr::SEvent::EventType
EEVENT_TYPE EventType
Definition IEventReceiver.h:414
irr::SEvent::GUIEvent
struct SGUIEvent GUIEvent
Definition IEventReceiver.h:417
irr::SEvent::LogEvent
struct SLogEvent LogEvent
Definition IEventReceiver.h:421
irr::SEvent::KeyInput
struct SKeyInput KeyInput
Definition IEventReceiver.h:419
irr::SJoystickInfo
Information on a joystick, returned from irr::IrrlichtDevice::activateJoysticks().
Definition IEventReceiver.h:452
irr::SJoystickInfo::Axes
u32 Axes
The number of axes that the joystick has, i.e. X, Y, Z, R, U, V.
Definition IEventReceiver.h:468
irr::SJoystickInfo::Buttons
u32 Buttons
The number of buttons that the joystick has.
Definition IEventReceiver.h:463
irr::SJoystickInfo::POV_HAT_UNKNOWN
@ POV_HAT_UNKNOWN
The presence or absence of a hat cannot be determined.
Definition IEventReceiver.h:482
irr::SJoystickInfo::POV_HAT_ABSENT
@ POV_HAT_ABSENT
A hat is definitely not present.
Definition IEventReceiver.h:479
irr::SJoystickInfo::POV_HAT_PRESENT
@ POV_HAT_PRESENT
A hat is definitely present.
Definition IEventReceiver.h:476
irr::SJoystickInfo::Name
core::stringc Name
The name that the joystick uses to identify itself.
Definition IEventReceiver.h:460
irr::SJoystickInfo::Joystick
u8 Joystick
The ID of the joystick.
Definition IEventReceiver.h:457
irr::SJoystickInfo::PovHat
enum irr::SJoystickInfo::@115075123012375127210070301051233205006352234131 PovHat
An indication of whether the joystick has a POV hat.
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0