I started working on a SDL 1.2 port for Switch, reusing the code from my 3ds port.
The link for the initial port is: (removed for project refactoring using a fork of the official SDL repository... stay tuned)
I also started a collection of portlibs: (repo removed since an official package is to be released soon)
At the moment I don't have a Switch and can't test the code myself, so any help for testing the code would be very apreciated.
Changelog
v0.2 - (02/03/2018)
- Added 8bpp 16bpp and 24bpp video mode
- Added touch screen handling (mapped to mouse events)
- Added automatic download an install of SDL_image SDL_gfx SDL_TTF and SDL_Mixer
v0.1 - (24/02/2018)
in the first release there is a basic video 32 bpp driver and key input events handler.
Installation
Install the needed portlibs (https://github.com/Nop90-Switch/Switch_portlibs)
Run make all & make install on the provided Makefile. This will compile the SDL lib , download and install SDL_image SDL_gfx SDL_TTF and SDL_Mixer and instal everything in the portlibs directory of your devkitA64 toolchain.
To use the libs remember to declare all the libraries dependencies in you makefile ( refer to the standard SDL 1.2 documentation or look at my ported SDL games).
Known Bugs
- Exiting the homebrew using the SDL libs the HBL crashes
To Do List
- Joystick spport
- Audio support
- Thread support
Games using SDL 1.2 for switch
Fruity- Ported by @Nop90 (GBATemp Link)
Last edited by nop90,