-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDL2 continually passes joyaxismotion events #885
Comments
Here's the events during one second of output. Edit: This is 145 lines - more than 2 events per frame!
|
I noticed the same thing for my kivy-ios builds. For my purposes I disabled these events in SDL - the setting is here: https://wiki.libsdl.org/SDL_HINT_ACCELEROMETER_AS_JOYSTICK Not sure if that setting also works on android though |
@hottwaj Thanks for the information, I've made a PR to Kivy that will fix it on all platforms. |
Apps using the sdl2 bootstrap get a steady stream (many per second) of joyaxismotion events. These seem to relate to sensor data, presumably for device orientation, but I didn't test it much and only found out by accident.
I'm not sure if this is intentional, but it seems like it can't be great for performance for kivy to get all those events every second (or even if that's not a problem, I'm not sure it's something we want), but I'm also not sure what's the correct way to disable it.
@akshayaurora Did you know about this? Do you think it's worth changing?
The text was updated successfully, but these errors were encountered: