Philip Howard
Philip Howard
Well this explains what all those includes are doing with the DraStic SDL- ``` /mnt/SDCARD/App/Geometry # cat geometry.log Geometry v1.0.0 Powered by 32Blit SDL2 runtime - github.com/32blit/32blit-sdk Surface for convert:...
``` /mnt/SDCARD/App/Geometry # cat geometry.log Geometry v1.0.0 Powered by 32Blit SDL2 runtime - github.com/32blit/32blit-sdk MMIYOO_CreateWindow, w:0, h:0 MMIYOO_OpenDevice, freq:22050 sample:256 channels:1 [MI ERR ]: MI_AO_SetPubAttr[3364]: Dev0 failed to set pub...
Okay grabbing the vanilla SDL from Stewart's repo, removing the vestigial libs/includes and building that seems to work - https://github.com/Gadgetoid/steward-fu-sdl/tree/vanilla That gets me... somewhere... I think
I'm up and running with a custom SDL, though I've made no effort to unpick the input handling. Audio is *extremely* delayed (about one second) and I don't really have...
I've figured out what you mean by emscripten/psp joysticks so I'm deep in populating the empty miyoo joystick driver to see if it will... do a thing. Darn Miyoo wont...
https://github.com/Gadgetoid/steward-fu-sdl/commit/dfef26c830259da55e51f76b24c9eddbfdd67596 😬 I must be missing some secret sauce because the compiler is picking up these changes but driver does nada, never gets probed, or who really knows!
TIL `SDL_gamecontrollerdb.h` For posterity: `"4d4d69796f6f204a6f79737469636b00,MMiyoo Joystick,dpup:b0,dpdown:b1,dpleft:b2,dpright:b3,a:b4,b:b5,x:b6,y:b7,leftshoulder:b8,lefttrigger:b9,rightshoulder:b10,righttrigger:b11,back:b12,start:b13,guide:b14,",` Name -> GUID: `"".join([hex(n)[2:] for n in list(bytes("MMiyoo Joystick", "utf-8"))])`
Okay the mapping works and coaxes SDL into “opening” the joystick, but still no input 🤔 https://github.com/Gadgetoid/steward-fu-sdl/commit/aaafe38bea154ac6119fad7f5e58315729f57a3c Sort-of debug: ``` Geometry v1.0.0 Powered by 32Blit SDL2 runtime - github.com/32blit/32blit-sdk _MI_AO_OpenVqeLib:...
Seems the bit that should be transforming `SDL_PrivateJoystickButton` into `SDL_PrivateGameControllerButton` just isn't happening... and that the `SDL_JOYBUTTONDOWN` and `SDL_JOYBUTTONUP` events never make it to 32blit's event loop. I'm baffled!
Sigh after *hours* of debugging and tinkering and losing sleep yes, it was an `SDL_SetKeyboardFocus(window)` needed in the miyoo video driver. Thank you! Patch https://github.com/Gadgetoid/steward-fu-sdl/commit/7141343b764bb5fe967eb514d1d9b3938ce2c653