Mod Archive Forums

Music Production => MilkyTracker => Tracking => MilkyTracker Bug Reports => Topic started by: MovieMovies1 on March 15, 2018, 20:01:13

Title: Tilting my computer plays notes (Accelerometer detection bug?)
Post by: MovieMovies1 on March 15, 2018, 20:01:13
Essentially, if I tilt my computer left I get a C#, and if I tilt it towards me I get a D#.

I'm on a laptop, which has some kind of accelerometer in it (to help protect the hdd i think or something), which seems to interfere with MilkyTracker. It's perhaps related to the switch to SDL 2 in version 1.0.0, seeing as this bug does not happen on 0.90.86.
Title: Re: Tilting my computer plays notes (Accelerometer detection bug?)
Post by: MovieMovies1 on March 17, 2018, 19:31:51
Further testing leads me to find that tilting away from myself registers as K, left as L, towards myself as Ø and away from myself as Æ.

Seems like some weird issue with SDL 2...
Title: Re: Tilting my computer plays notes (Accelerometer detection bug?)
Post by: Saga Musix on March 18, 2018, 23:29:15
Do other SDL2 applications exhibit similar problems? If it's not an issue with SDL2, I can imagine that Milky is truncating some key scancodes somewhere and they end up as regular keyboard codes...
Title: Re: Tilting my computer plays notes (Accelerometer detection bug?)
Post by: MovieMovies1 on March 19, 2018, 04:23:28
Happens in ProTracker-win, as well as some application somebody made for me to test the keytilt.
Title: Re: Tilting my computer plays notes (Accelerometer detection bug?)
Post by: Saga Musix on March 19, 2018, 15:00:01
So did you file a bug with SDL2 yet? At this point you definitely should. I doubt there is anything MilkyTracker can do, apart from upgrading to a bugfixed SDL2 once it's released.
Title: Re: Tilting my computer plays notes (Accelerometer detection bug?)
Post by: MovieMovies1 on March 19, 2018, 15:57:55
I haven't gotten around to it yet, but I've been meaning to. Have had some more important things to take care of first.