Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: Tilting my computer plays notes (Accelerometer detection bug?)  (Read 7686 times)

0 Members and 1 Guest are viewing this topic.

MovieMovies1

  • New User
  • Offline Offline
  • Posts: 9
  • [Insert Text Here]
    • View Profile

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.
Logged

MovieMovies1

  • New User
  • Offline Offline
  • Posts: 9
  • [Insert Text Here]
    • View Profile
Re: Tilting my computer plays notes (Accelerometer detection bug?)
« Reply #1 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...
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Tilting my computer plays notes (Accelerometer detection bug?)
« Reply #2 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...
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

MovieMovies1

  • New User
  • Offline Offline
  • Posts: 9
  • [Insert Text Here]
    • View Profile
Re: Tilting my computer plays notes (Accelerometer detection bug?)
« Reply #3 on: March 19, 2018, 04:23:28 »

Happens in ProTracker-win, as well as some application somebody made for me to test the keytilt.
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: Tilting my computer plays notes (Accelerometer detection bug?)
« Reply #4 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.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

MovieMovies1

  • New User
  • Offline Offline
  • Posts: 9
  • [Insert Text Here]
    • View Profile
Re: Tilting my computer plays notes (Accelerometer detection bug?)
« Reply #5 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.
Logged
Pages: [1]   Go Up