The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Is it normal to get SDL_TEXTEDITING events w/o SDL_StartText
Sparks


Joined: 01 Jun 2013
Posts: 47
This is odd, on startup, I am getting a SDL_TEXTEDITING event and SDL_StartTextInput() isn't even called yet, since I didn't make a routine that calls SDL_StartTextInput() yet.
So, why is this event being fired?
This is with SDL git head@2287c7b03 from the git mirror https://github.com/spurious/SDL-mirror.git

Code:

-      event   {type=770 common={type=770 timestamp=332 } window={type=770 timestamp=332 windowID=1 ...} ...}   SDL_Event
      type   770   unsigned int
+      common   {type=770 timestamp=332 }   SDL_CommonEvent
+      window   {type=770 timestamp=332 windowID=1 ...}   SDL_WindowEvent
+      key   {type=770 timestamp=332 windowID=1 ...}   SDL_KeyboardEvent

Sparks


Joined: 01 Jun 2013
Posts: 47
Forgot to mention, this is on windows 7.
Is it normal to get SDL_TEXTEDITING events w/o SDL_StartText
john skaller
Guest

On 27/02/2015, at 3:56 PM, Sparks wrote:

Quote:
This is odd, on startup, I am getting a SDL_TEXTEDITING event and SDL_StartTextInput() isn't even called yet, since I didn't make a routine that calls SDL_StartTextInput() yet.

That seems correct on desktop OS with a fixed keyboard.

StartTextInput is only for touch screens, to popup the keyboard
to tap on.

[It might also do something to enable input of complex
foreign code points such as Chinese, using some specialised
input method, even on a desktop]

--
john skaller

http://felix-lang.org



_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Is it normal to get SDL_TEXTEDITING events w/o SDL_StartText
Alex Szpakowski
Guest

Text input is enabled by default on desktop OS'.
Quote:
On Feb 27, 2015, at 12:56 AM, Sparks wrote:
This is odd, on startup, I am getting a SDL_TEXTEDITING event and SDL_StartTextInput() isn't even called yet, since I didn't make a routine that calls SDL_StartTextInput() yet. So, why is this event being fired? This is with SDL git head@2287c7b03 from the git mirror https://github.com/spurious/SDL-mirror.git Code: - event {type=770 common={type=770 timestamp=332 } window={type=770 timestamp=332 windowID=1 ...} ...} SDL_Event type 770 unsigned int + common {type=770 timestamp=332 } SDL_CommonEvent + window {type=770 timestamp=332 windowID=1 ...} SDL_WindowEvent + key {type=770 timestamp=332 windowID=1 ...} SDL_KeyboardEvent


_______________________________________________SDL mailing://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Is it normal to get SDL_TEXTEDITING events w/o SDL_StartText
Sik


Joined: 26 Nov 2011
Posts: 905
2015-02-27 2:08 GMT-03:00, john skaller:
Quote:
[It might also do something to enable input of complex
foreign code points such as Chinese, using some specialised
input method, even on a desktop]

Yep, IME input doesn't work at all when text input isn't enabled (and
handling this properly is important, because when it's enabled then
you won't get keypress events for the letters since they're being
captured by the IME!).
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org