Neverball / neverball

Tilt the floor to roll a ball through an obstacle course before time runs out.
https://neverball.org
Other
352 stars 80 forks source link

Can't control ball using laptop accelerometer anymore #169

Closed xCuri0 closed 5 years ago

xCuri0 commented 6 years ago

I used to be able to do this with the version included with Ubuntu 14.04 but now I can't

parasti commented 5 years ago

The only reason why this might have worked (that I can think of) might be because the Linux kernel exposed the accelerometer as a joystick device and Neverball used it. Maybe? I don't believe there is anything we can do on our end that would restore that behavior.

qwertychouskie commented 5 years ago

I'm pretty sure this was probably a kernel change, or a change in SDL2's device blacklist. SuperTuxKart had to blacklist some various laptop internal sensors from acting as gamepads, SDL probably has a similar blacklist.

dsd commented 5 years ago

See https://bugzilla.libsdl.org/show_bug.cgi?id=4789 for more info and a likely fix.

AnterCreeper commented 2 years ago

Why not use iio-sensor-proxy to read data from gyrometer and accelerometer, and use them to control game?