Toot

Written by Alice :neocat_flag_transbian: on 2024-12-09 at 14:52

Hm, so I implemented haptic feedback for touch controls, but it doesn't seem to be possible to implement the actual game rumble via libfeedback?.. I mean the entirety of feedbackd is structured around themes and named events, but here you need to simply play rumble with magnitude X and duration Y. Well, ideally strong/weak magnitude, but just magnitude is fine, just in general to differentiate stronger/weaker rumble. feedbackd does do that internally, but it's entirely private.

Even for input it more or less works by accident. The default theme only uses haptics for buttons, but there's no guarantee it won't turn into sounds instead (which would be unwanted here for rather obvious reasons). I currently set profile to quiet as well since the default theme actually does use sounds in the full profile, but ofc the daemon is allowed to ignore that too... So the app can only hope no one is doing weird things with themes ​:haggard:​

I wonder if I should just copy parts of feedbackd in tree and use that instead - I mean that's basically what libmanette does for gamepads already. Tho also I see it uses udev for finding rumble devices, which won't really work in flatpak unless I hardcode those 3 specific devices that it supports

=> View attached media

=> More informations about this toot | View the thread | More toots from alice@mk.nyaa.place

Mentions

Tags

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113623430843833851
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
230.432594 milliseconds
Gemini-to-HTML Time
0.477079 milliseconds

This content has been proxied by September (3851b).