iOS: need help de-hardcoding SDL 2.0.3 changes in Exult-iOS
"Dominus" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
Hi all, last year Exult (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. All the SDL 2.0.3 changes are diffed in http://pastebin.com/h8Uq1kPk (the commits to exult-iOS https://github.com/litchie/exult-ios/commit/f167ef1, https://github.com/litchie/exult-ios/commit/77e1edeea1e70379d001e24ba86d7afc16ec2b2c, 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 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] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org