]> git.lizzy.rs Git - irrlicht.git/blobdiff - source/Irrlicht/CIrrDeviceSDL.h
Revert "Fix: Listbox was sometimes sending EGET_LISTBOX_SELECTED_AGAIN instead of...
[irrlicht.git] / source / Irrlicht / CIrrDeviceSDL.h
index 5a38d774337ef0f4d2a6ec1ef3fee4c011b2720b..4dbb2e76928c65544f81a8c773764c851741ce32 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef __C_IRR_DEVICE_SDL_H_INCLUDED__\r
 #define __C_IRR_DEVICE_SDL_H_INCLUDED__\r
 \r
-#include "IrrCompileConfig.h"\r
 \r
 #ifdef _IRR_COMPILE_WITH_SDL_DEVICE_\r
 \r
@@ -76,6 +75,9 @@ namespace irr
                //! Restores the window size.\r
                void restoreWindow() override;\r
 \r
+               //! Checks if the window is maximized.\r
+               bool isWindowMaximized() const override;\r
+\r
                //! Checks if the Irrlicht window is running in fullscreen mode\r
                /** \return True if window is fullscreen. */\r
                bool isFullscreen() const override;\r
@@ -261,6 +263,15 @@ namespace irr
        static EM_BOOL MouseLeaveCallback(int eventType, const EmscriptenMouseEvent *mouseEvent, void *userData);\r
 \r
 #endif\r
+               // Check if a key is a known special character with no side effects on text boxes.\r
+               static bool keyIsKnownSpecial(EKEY_CODE key);\r
+\r
+               // Return the Char that should be sent to Irrlicht for the given key (either the one passed in or 0).\r
+               static int findCharToPassToIrrlicht(int assumedChar, EKEY_CODE key);\r
+\r
+               // Check if a text box is in focus. Enable or disable SDL_TEXTINPUT events only if in focus.\r
+               void resetReceiveTextInputEvents();\r
+\r
                //! create the driver\r
                void createDriver();\r
 \r
@@ -283,7 +294,6 @@ namespace irr
                u32 Width, Height;\r
 \r
                bool Resizable;\r
-               bool WindowMinimized;\r
 \r
                struct SKeyMap\r
                {\r