 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __I_EVENT_RECEIVER_H_INCLUDED__
6 #define __I_EVENT_RECEIVER_H_INCLUDED__
u32 Axes
The number of axes that the joystick has, i.e. X, Y, Z, R, U, V.
@ EGET_TABLE_CHANGED
A table has changed.
struct SJoystickEvent JoystickEvent
@ EGET_TREEVIEW_NODE_DESELECT
A tree view node lost selection. See IGUITreeView::getLastEventNode().
@ EGET_SCROLL_BAR_CHANGED
A scrollbar has changed its position.
u8 Joystick
The ID of the joystick.
@ EMIE_MMOUSE_PRESSED_DOWN
Middle mouse button was pressed down.
enum irr::SJoystickInfo::@3 PovHat
An indication of whether the joystick has a POV hat.
struct SMouseInput MouseInput
@ EGET_FILE_SELECTED
A file has been selected in the file dialog.
@ EET_MOUSE_INPUT_EVENT
A mouse input event.
@ EGET_LISTBOX_SELECTED_AGAIN
An item in the listbox was selected, which was already selected.
virtual ~IEventReceiver()
Destructor.
@ EGET_DIRECTORY_SELECTED
A directory has been selected in the file dialog.
@ EGET_LISTBOX_CHANGED
A new item in a listbox was selected.
@ EGET_FILE_CHOOSE_DIALOG_CANCELLED
A file open dialog has been closed without choosing a file.
@ POV_HAT_ABSENT
A hat is definitely not present.
char c8
8 bit character variable.
@ EGET_CHECKBOX_CHANGED
A checkbox has changed its check state.
EGUI_EVENT_TYPE
Enumeration for all events which are sendable by the gui system.
@ EMIE_LMOUSE_LEFT_UP
Left mouse button was left up.
core::stringc Name
The name that the joystick uses to identify itself.
@ EGET_EDITBOX_MARKING_CHANGED
The marked area in an editbox was changed.
@ EGET_ELEMENT_FOCUSED
A gui element has got the focus.
@ EGET_COUNT
No real event. Just for convenience to get number of events.
signed short s16
16 bit signed variable.
@ EMIE_LMOUSE_PRESSED_DOWN
Left mouse button was pressed down.
struct SGUIEvent GUIEvent
struct SKeyInput KeyInput
Information on a joystick, returned from irr::IrrlichtDevice::activateJoysticks()
@ EGET_TREEVIEW_NODE_SELECT
A tree view node was selected. See IGUITreeView::getLastEventNode().
@ EGET_MESSAGEBOX_YES
'Yes' was clicked on a messagebox
@ EMIE_RMOUSE_PRESSED_DOWN
Right mouse button was pressed down.
@ EGET_EDITBOX_ENTER
In an editbox 'ENTER' was pressed.
const c8 * Text
Pointer to text which has been logged.
@ EET_KEY_INPUT_EVENT
A key input event.
@ EGET_MESSAGEBOX_OK
'OK' was clicked on a messagebox
@ EET_LOG_TEXT_EVENT
A log event.
u8 Joystick
The ID of the joystick which generated this event.
signed int s32
32 bit signed variable.
@ EMIE_RMOUSE_TRIPLE_CLICK
@ EGET_EDITBOX_CHANGED
The text in an editbox was changed. This does not include automatic changes in text-breaking.
EEVENT_TYPE
Enumeration for all event types there are.
struct SLogEvent LogEvent
struct SUserEvent UserEvent
@ EGET_SPINBOX_CHANGED
The value of a spin box has changed.
@ EMIE_LMOUSE_DOUBLE_CLICK
@ EMBSM_EXTRA1
currently only on windows
float f32
32 bit floating point variable.
@ EGET_ELEMENT_HOVERED
The mouse cursor hovered over a gui element.
SEvents hold information about an event. See irr::IEventReceiver for details on event handling.
@ EET_USER_EVENT
A user event with user data.
u32 Buttons
The number of buttons that the joystick has.
@ EMIE_MMOUSE_DOUBLE_CLICK
@ EGET_TABLE_SELECTED_AGAIN
@ EMIE_MMOUSE_LEFT_UP
Middle mouse button was left up.
@ POV_HAT_PRESENT
A hat is definitely present.
@ EGET_BUTTON_CLICKED
A button was clicked.
@ EGET_TREEVIEW_NODE_EXPAND
A tree view node was expanded. See IGUITreeView::getLastEventNode().
@ EGET_ELEMENT_LEFT
The mouse cursor left the hovered element.
@ POV_HAT_UNKNOWN
The presence or absence of a hat cannot be determined.
@ EGET_MESSAGEBOX_NO
'No' was clicked on a messagebox
gui::IGUIElement * Element
If the event has something to do with another element, it will be held here.
Interface of an object which can receive events.
@ EGET_TREEVIEW_NODE_COLLAPSE
A tree view node was collapsed. See IGUITreeView::getLastEventNode().
@ EGET_TABLE_HEADER_CHANGED
@ EET_JOYSTICK_INPUT_EVENT
A joystick (joypad, gamepad) input event.
Everything in the Irrlicht Engine can be found in this namespace.
@ EMBSM_EXTRA2
currently only on windows
unsigned short u16
16 bit unsigned variable.
@ EGET_ELEMENT_FOCUS_LOST
A gui element has lost its focus.
unsigned int u32
32 bit unsigned variable.
EMOUSE_INPUT_EVENT
Enumeration for all mouse input events.
@ EGET_ELEMENT_CLOSED
An element would like to close.
@ EMIE_LMOUSE_TRIPLE_CLICK
gui::IGUIElement * Caller
IGUIElement who called the event.
s32 UserData2
Another user specified data as int.
@ EMIE_RMOUSE_LEFT_UP
Right mouse button was left up.
@ EGET_TAB_CHANGED
The tab was changed in an tab control.
@ EGET_MESSAGEBOX_CANCEL
'Cancel' was clicked on a messagebox
@ EMIE_COUNT
No real event. Just for convenience to get number of events.
virtual bool OnEvent(const SEvent &event)=0
Called if an event happened.
@ EGET_COMBO_BOX_CHANGED
The selection in a combo box has been changed.
@ EMIE_MMOUSE_TRIPLE_CLICK
s32 UserData1
Some user specified data as int.
@ EET_GUI_EVENT
An event of the graphical user interface.
@ EMIE_MOUSE_MOVED
The mouse cursor changed its position.
bool IsButtonPressed(u32 button) const
A helper function to check if a button is pressed.
Base class of all GUI elements.
@ EGET_MENU_ITEM_SELECTED
A menu item was selected in a (context) menu.
unsigned char u8
8 bit unsigned variable.
ELOG_LEVEL Level
Log level in which the text has been logged.
gui::EGUI_EVENT_TYPE EventType
Type of GUI Event.
@ EGET_TREEVIEW_NODE_COLLAPS
E_MOUSE_BUTTON_STATE_MASK
Masks for mouse button states.
@ EMIE_RMOUSE_DOUBLE_CLICK