5 #ifndef __I_EVENT_RECEIVER_H_INCLUDED__ 6 #define __I_EVENT_RECEIVER_H_INCLUDED__ 346 NUMBER_OF_BUTTONS = 32,
386 if(button >= (
u32)NUMBER_OF_BUTTONS)
389 return (ButtonStates & (1 << button)) ?
true :
false;
446 virtual bool OnEvent(
const SEvent& event) = 0;
A checkbox has changed its check state.
signed short s16
16 bit signed variable.
u32 Axes
The number of axes that the joystick has, i.e. X, Y, Z, R, U, V.
An event of the graphical user interface.
The mouse cursor changed its position.
core::stringc Name
The name that the joystick uses to identify itself.
A file has been selected in the file dialog.
SEvents hold information about an event. See irr::IEventReceiver for details on event handling...
EMOUSE_INPUT_EVENT
Enumeration for all mouse input events.
float f32
32 bit floating point variable.
gui::IGUIElement * Element
If the event has something to do with another element, it will be held here.
A scrollbar has changed its position.
Right mouse button was left up.
char c8
8 bit character variable.
A directory has been selected in the file dialog.
A user event with user data.
No real event. Just for convenience to get number of events.
currently only on windows
A gui element has got the focus.
s32 UserData1
Some user specified data as int.
Everything in the Irrlicht Engine can be found in this namespace.
An item in the listbox was selected, which was already selected.
A new item in a listbox was selected.
A file open dialog has been closed without choosing a file.
gui::EGUI_EVENT_TYPE EventType
Type of GUI Event.
const c8 * Text
Pointer to text which has been logged.
A tree view node was selected. See IGUITreeView::getLastEventNode().
The text in an editbox was changed. This does not include automatic changes in text-breaking.
u8 Joystick
The ID of the joystick.
unsigned char u8
8 bit unsigned variable.
Middle mouse button was left up.
The marked area in an editbox was changed.
A joystick (joypad, gamepad) input event.
virtual ~IEventReceiver()
Destructor.
The value of a spin box has changed.
unsigned short u16
16 bit unsigned variable.
ELOG_LEVEL Level
Log level in which the text has been logged.
Interface of an object which can receive events.
'Yes' was clicked on a messagebox
Right mouse button was pressed down.
u32 Buttons
The number of buttons that the joystick has.
Information on a joystick, returned from irr::IrrlichtDevice::activateJoysticks() ...
signed int s32
32 bit signed variable.
gui::IGUIElement * Caller
IGUIElement who called the event.
currently only on windows
In an editbox 'ENTER' was pressed.
u8 Joystick
The ID of the joystick which generated this event.
The mouse cursor hovered over a gui element.
unsigned int u32
32 bit unsigned variable.
'OK' was clicked on a messagebox
Left mouse button was pressed down.
A hat is definitely present.
A gui element has lost its focus.
EEVENT_TYPE
Enumeration for all event types there are.
Base class of all GUI elements.
EGUI_EVENT_TYPE
Enumeration for all events which are sendable by the gui system.
A tree view node was collapsed. See IGUITreeView::getLastEventNode().
s32 UserData2
Another user specified data as int.
A tree view node was expanded. See IGUITreeView::getLastEventNode().
The tab was changed in an tab control.
bool IsButtonPressed(u32 button) const
A helper function to check if a button is pressed.
E_MOUSE_BUTTON_STATE_MASK
Masks for mouse button states.
The mouse cursor left the hovered element.
'No' was clicked on a messagebox
A hat is definitely not present.
Middle mouse button was pressed down.
The selection in a combo box has been changed.
No real event. Just for convenience to get number of events.
A menu item was selected in a (context) menu.
Left mouse button was left up.
A tree view node lost selection. See IGUITreeView::getLastEventNode().
'Cancel' was clicked on a messagebox
An element would like to close.