Re: iOS: need help de-hardcoding SDL 2.0.3 changes in Exult-iOS

Alex Szpakowski <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
SDL_GetWindowWMInfo can give you a struct containing the underlying UIWindow* created by SDL_CreateWindow on iOS (check out SDL_syswm.h).

I *highly* recommend using SDL 2.0.4 or later for iOS - much of the platform backend code has been rewritten since 2.0.3, and many parts of it didn’t work on modern iOS versions prior to the rewrites.

> On Sep 26, 2016, at 10:15 AM, Dominus <[email protected]> wrote:
> 
> Hi all,
> 
> last year Exult (http://exult.sf.net <http://exult.sf.net/>) was ported to iOS. The porter changed stuff in SDL 2.0.3 source code to make Exult display and to use correct touch coordinates properly - repository at https://github.com/litchie/exult-ios. <https://github.com/litchie/exult-ios.>
> 
> All the SDL 2.0.3 changes are diffed in http://pastebin.com/h8Uq1kPk <http://pastebin.com/h8Uq1kPk> (the commits to exult-iOS https://github.com/litchie/exult-ios/commit/f167ef1, <https://github.com/litchie/exult-ios/commit/f167ef1,>https://github.com/litchie/exult-ios/commit/77e1edeea1e70379d001e24ba86d7afc16ec2b2c, <https://github.com/litchie/exult-ios/commit/77e1edeea1e70379d001e24ba86d7afc16ec2b2c,> https://github.com/litchie/exult-ios/commit/5084a227295a020d455b2247adaf5b03ba27a17b <https://github.com/litchie/exult-ios/commit/5084a227295a020d455b2247adaf5b03ba27a17b>)
> 
> Now I'm trying my hands at de-hardcoding these changes but are not getting far. The goal was to be able to make SDL2 a drop-in only lib instead of hardcoding all this and then being stuck when a new version of SDL2 is released with useful changes (e.g. the recent change for the mouseclick event)
> 
> I've partially managed to at least create a subclass for SDLUIKITDelegate but still needed to keep the change in SDL_uikitwindow.m - see https://github.com/litchie/exult-ios/commit/84c773210c7cc60581b6e3a70e7606261481332f <https://github.com/litchie/exult-ios/commit/84c773210c7cc60581b6e3a70e7606261481332f>
> 
> Can anyone help me a bit? I know that's a big request especially since I'm not very experienced. But I really could need help to resolve at least the need for the SDL_uikitwindow.m change.
> _______________________________________________
> SDL mailing list
> [email protected] <mailto:[email protected]>
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org <http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.