]> git.lizzy.rs Git - irrlicht.git/blobdiff - include/IEventReceiver.h
Add WindowMaximized creation parameter and isWindowMaximized() (#142)
[irrlicht.git] / include / IEventReceiver.h
index 44c86e6c56efb09465fb5d8af5b565910291a44a..91588a3c2018380c2fe45f01891bfe22d88c6f24 100644 (file)
@@ -34,17 +34,21 @@ namespace irr
                IrrlichtDevice::postEventFromUser. They take the same path as mouse events. */\r
                EET_KEY_INPUT_EVENT,\r
 \r
-        //! A touch input event.\r
+               //! A string input event.\r
+               /** This event is created when multiple characters are sent at a time (e.g. using an IME). */\r
+               EET_STRING_INPUT_EVENT,\r
+\r
+               //! A touch input event.\r
                EET_TOUCH_INPUT_EVENT,\r
 \r
-        //! A accelerometer event.\r
-        EET_ACCELEROMETER_EVENT,\r
+               //! A accelerometer event.\r
+               EET_ACCELEROMETER_EVENT,\r
 \r
-        //! A gyroscope event.\r
-        EET_GYROSCOPE_EVENT,\r
+               //! A gyroscope event.\r
+               EET_GYROSCOPE_EVENT,\r
 \r
-        //! A device motion event.\r
-        EET_DEVICE_MOTION_EVENT,\r
+               //! A device motion event.\r
+               EET_DEVICE_MOTION_EVENT,\r
 \r
                //! A joystick (joypad, gamepad) input event.\r
                /** Joystick events are created by polling all connected joysticks once per\r
@@ -276,18 +280,6 @@ namespace irr
                        //! A file open dialog has been closed without choosing a file\r
                        EGET_FILE_CHOOSE_DIALOG_CANCELLED,\r
 \r
-                       //! 'Yes' was clicked on a messagebox\r
-                       EGET_MESSAGEBOX_YES,\r
-\r
-                       //! 'No' was clicked on a messagebox\r
-                       EGET_MESSAGEBOX_NO,\r
-\r
-                       //! 'OK' was clicked on a messagebox\r
-                       EGET_MESSAGEBOX_OK,\r
-\r
-                       //! 'Cancel' was clicked on a messagebox\r
-                       EGET_MESSAGEBOX_CANCEL,\r
-\r
                        //! In an editbox 'ENTER' was pressed\r
                        EGET_EDITBOX_ENTER,\r
 \r
@@ -300,36 +292,14 @@ namespace irr
                        //! The tab was changed in an tab control\r
                        EGET_TAB_CHANGED,\r
 \r
-                       //! A menu item was selected in a (context) menu\r
-                       EGET_MENU_ITEM_SELECTED,\r
-\r
                        //! The selection in a combo box has been changed\r
                        EGET_COMBO_BOX_CHANGED,\r
 \r
-                       //! The value of a spin box has changed\r
-                       EGET_SPINBOX_CHANGED,\r
-\r
                        //! A table has changed\r
                        EGET_TABLE_CHANGED,\r
                        EGET_TABLE_HEADER_CHANGED,\r
                        EGET_TABLE_SELECTED_AGAIN,\r
 \r
-                       //! A tree view node lost selection. See IGUITreeView::getLastEventNode().\r
-                       EGET_TREEVIEW_NODE_DESELECT,\r
-\r
-                       //! A tree view node was selected. See IGUITreeView::getLastEventNode().\r
-                       EGET_TREEVIEW_NODE_SELECT,\r
-\r
-                       //! A tree view node was expanded. See IGUITreeView::getLastEventNode().\r
-                       EGET_TREEVIEW_NODE_EXPAND,\r
-\r
-                       //! A tree view node was collapsed. See IGUITreeView::getLastEventNode().\r
-                       EGET_TREEVIEW_NODE_COLLAPSE,\r
-\r
-                       //! deprecated - use EGET_TREEVIEW_NODE_COLLAPSE instead. This\r
-                       //! may be removed by Irrlicht 1.9\r
-                       EGET_TREEVIEW_NODE_COLLAPS = EGET_TREEVIEW_NODE_COLLAPSE,\r
-\r
                        //! No real event. Just for convenience to get number of events\r
                        EGET_COUNT\r
                };\r
@@ -413,61 +383,68 @@ struct SEvent
                bool Control:1;\r
        };\r
 \r
-    //! Any kind of touch event.\r
+       //! String input event.\r
+       struct SStringInput\r
+       {\r
+               //! The string that is entered\r
+               core::stringw *Str;\r
+       };\r
+\r
+       //! Any kind of touch event.\r
        struct STouchInput\r
        {\r
-        // Touch ID.\r
-        size_t ID;\r
+               // Touch ID.\r
+               size_t ID;\r
 \r
-        // X position of simple touch.\r
+               // X position of simple touch.\r
                s32 X;\r
 \r
-        // Y position of simple touch.\r
+               // Y position of simple touch.\r
                s32 Y;\r
 \r
+               // number of current touches\r
+               s32 touchedCount;\r
+\r
                //! Type of touch event.\r
                ETOUCH_INPUT_EVENT Event;\r
        };\r
 \r
-    //! Any kind of accelerometer event.\r
+       //! Any kind of accelerometer event.\r
        struct SAccelerometerEvent\r
        {\r
-\r
-        // X acceleration.\r
+               // X acceleration.\r
                f64 X;\r
 \r
-        // Y acceleration.\r
+               // Y acceleration.\r
                f64 Y;\r
 \r
-        // Z acceleration.\r
+               // Z acceleration.\r
                f64 Z;\r
        };\r
 \r
     //! Any kind of gyroscope event.\r
        struct SGyroscopeEvent\r
        {\r
-\r
-        // X rotation.\r
+               // X rotation.\r
                f64 X;\r
 \r
-        // Y rotation.\r
+               // Y rotation.\r
                f64 Y;\r
 \r
-        // Z rotation.\r
+               // Z rotation.\r
                f64 Z;\r
        };\r
 \r
-    //! Any kind of device motion event.\r
+       //! Any kind of device motion event.\r
        struct SDeviceMotionEvent\r
        {\r
-\r
-        // X angle - roll.\r
+               // X angle - roll.\r
                f64 X;\r
 \r
-        // Y angle - pitch.\r
+               // Y angle - pitch.\r
                f64 Y;\r
 \r
-        // Z angle - yaw.\r
+               // Z angle - yaw.\r
                f64 Z;\r
        };\r
 \r
@@ -581,10 +558,11 @@ struct SEvent
                struct SGUIEvent GUIEvent;\r
                struct SMouseInput MouseInput;\r
                struct SKeyInput KeyInput;\r
-        struct STouchInput TouchInput;\r
-        struct SAccelerometerEvent AccelerometerEvent;\r
-        struct SGyroscopeEvent GyroscopeEvent;\r
-        struct SDeviceMotionEvent DeviceMotionEvent;\r
+               struct SStringInput StringInput;\r
+               struct STouchInput TouchInput;\r
+               struct SAccelerometerEvent AccelerometerEvent;\r
+               struct SGyroscopeEvent GyroscopeEvent;\r
+               struct SDeviceMotionEvent DeviceMotionEvent;\r
                struct SJoystickEvent JoystickEvent;\r
                struct SLogEvent LogEvent;\r
                struct SUserEvent UserEvent;\r