Wii support via Devkit Pro homebrew SDK
Hello!
Some time ago, I started my work on porting the SDL2 to Wii. I saw that SDL1 was, but I also heard it was poorly supported.
I created this issue in order to track the work and discuss anything if needed. I do use Devkit Pro to make the port.
Sub-systems to port:
- [x] Mutex, done via OGC API
- [x] Threads, done via OGC API
- [x] Timer, the generic UNIX code works just fine
- [x] Sound, done via OGC API. I set it to work with 32000 Hz always, as it's the native rate of the Wii.
- [ ] Joystick (very partially, I didn't finish it. At least, it works, but no mapping works currently, I didn't complete it. I should make an attempt to properly map both Wii Remote and Classic controller. Currently, I don't own any classic controller: only Wii Remote).
- [ ] File system. I made some minor tweaks, I had to copy some from PSVita's code and tweak them around). However, I still need to verify it soon.
- [ ] Video. I didn't start that yet. There is the API called "GX" which has some similarities to OpenGL but looks different. The most complicated part of the port, and I will need some help on which parts I should take and make the minimal overlay to provide the graphics support.
- [ ] Keyboard. I didn't start that yet. There is a custom API that allows handling keyboard plugged via USB.
- [ ] Check the possibility to use HIDAPI to use custom USB-plugged controllers.
If anything is also needed, please tell me.
The current state of my Wii branch is enough to run the MixerX with a simple demo on the Wii and play sound and music.
My current work is here: https://github.com/Wohlstand/SDL/tree/wii-support
FYI, I just added support for Wii controllers in the HIDAPI driver. I'm guessing that it's not useful for the APIs you have access to, but might be interesting anyway.
FYI, I just added support for Wii controllers in the HIDAPI driver. I'm guessing that it's not useful for the APIs you have access to, but might be interesting anyway.
I saw some commits that mentions this. As I know, this allows to use Wii controllers on any other platform. On Wii itself there is own API to use these controllers, but I also expect, there is possible to use custom controllers via USB, but I never attempted to make something with, need to investigate some.