danomatika / joyosc

(maintained) hid device to osc event daemon used in the robotcowboy project
http://robotcowboy.com
GNU General Public License v3.0
44 stars 3 forks source link

Gyroscope input? #19

Closed agraef closed 1 week ago

agraef commented 2 weeks ago

It would be nice if joyosc supported gyro inputs, at least with joyosc -j. Some gamepads like the PS controllers provide these, also some cheap and cheerful 8bitdo controllers like the 8bitdo Pro 2 when they are in Switch mode. I don't think that this works right now. I'm not sure how to implement it, but https://github.com/libsdl-org/SDL/blob/419ae29d90d3934e1a382cd693ac60a1f492e43a/test/testgamecontroller.c#L349 might provide some hints.

agraef commented 1 week ago

Yeah, this isn't too hard to do; expect a PR shortly.