How do we get DS4 (and maybe Dual Sense?) controllers working with rumble (and maybe the triggers too)? This seems like an interesting resource:.That's my initial goal, that way XInput controllers work on macOS, Windows, and Linux. So what does this mean? Well, it should at least be possible to get XInput controllers rumbling on macOS in Godot by referencing SDL's implementation. DS4/MFi and DirectInput controllers didn't rumble though, and SDL reports them as not supporting rumble. The controllers using XInput rumbled, awesome! And a controller that emulates Switch Pro Controller rumbled too, just a bit weakly. I wrote a little SDL2 CLI tester and tested some controllers. Then I thought, okay, let's see if SDL2 can rumble controllers on macOS. So at the very baseline, we know that with Swift and Apple's SDK, you can rumble a DS4 and Xbox One controller on macOS 12.6. So I dug into Apple's haptics API and can confirm it rumbles DS4 and XInput controllers with this sample game they provided. I tested some Unity games that I know have rumble support and none of them worked on macOS. Let me know if I'm being too noisy here, but I thought I'd share some findings from the world of macOS rumble. If anyone else is interested in lending a hand with testing or investigating, let me know! It'd be much appreciated. look into why Steam Deck's haptics don't just work.further test out DualShock 4 controller on Linux and Windows, investigate findings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |