PDA

View Full Version : Text input in SDL



chronozphere
26-04-2010, 08:20 AM
Hey guys

I want to handle text input events in SDL. I've seen C/C++ code using the SDL_INPUTEVENT event. However, I can't find it in SDL.pas. Also, I'm not sure how to add it, because I feel I may break the whole SDL_Event datastructure.

Can anyone please help? :(

Thanks

Stoney
26-04-2010, 10:30 AM
As far as I know text input and editing with SDL is a feature of SDL 1.3.

chronozphere
26-04-2010, 10:35 AM
Oh yes. Your headers have it. :)

I just contacted Dom, and he will probably include a temporary SDL 1.3 header in the JEDI-SDL project. We can maintain that one until SDL 1.3 finally comes out.
When the header is up, I'll take a look at it and I may merge some things from your header into it. :)