-
-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for SDL2 #6173
Comments
Alberth wrote:
This comment was imported from FlySpray: https://bugs.openttd.org/task/6173#comment13638 |
Marctraider wrote:
This comment was imported from FlySpray: https://bugs.openttd.org/task/6173#comment13640 |
Although this would be nice to have, it isn't something we expect to fulfill in the next year, and on that basis I'm closing it. We do this to keep the project manageable, productive and fun. We hope you do understand. Thanks for contributing though! Here you can find more about how we handle feature requests. |
I'm going to look into what kinds of changes this will require and see if I can get something working. Should be fun! Relevant docs:
|
I've gotten OpenTTD's SDL video driver working with SDL 2 on this branch. https://github.com/nikolas/OpenTTD/tree/sdl2 A work in progress: unicode/compose key input isn't working yet. I'm also not sure if it makes sense to make a new video driver: |
I wouldn't expect to need to support both versions of SDL, they're quite different and supporting both will just make things difficult. |
You might find https://github.com/FreeRCT/FreeRCT/blob/master/src/video.cpp interesting to look at - it uses SDL2 and there are some similarities to OTTD's codebase (I think it was converted from 1.2 to 2 at some point in the history as well) |
I've had a play with your code, @nikolas, and it seems to be working well for me (although I must stress I haven't tested it extensively!). I was also able to combine it with my (currently very experimental and incomplete) UWP port of OpenTTD, and it works there too. :) |
Cool, good to hear. Currently there are problems with text input on my |
ignatenkobrain opened the ticket and wrote:
Reported version: Version?
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/6173
The text was updated successfully, but these errors were encountered: