]> git.lizzy.rs Git - irrlicht.git/blobdiff - source/Irrlicht/CIrrDeviceSDL.h
Refactor SDL input code to fix menu exit (#146)
[irrlicht.git] / source / Irrlicht / CIrrDeviceSDL.h
index 299271823d1d4dc177ecc848cd758ce873375af7..7657718fcbbda3f506c2e3c85f29a1471d1556b4 100644 (file)
@@ -264,6 +264,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