Bluetooth keyboard again

I got quite far with integrating bluetooth keyboard support today. Now I can press the keys qwerty to play the notes C-3 to A-4. The only problem is that it will be really difficult to support different keyboard layouts for different countries. Take for instance the difference between an English keyboard and a German keyboard. If you press z on an English keyboard, you are suppose to get the note C-2. However, on a German keyboard, you expect to get the note A-4, because z and y are swapped on a German keyboard. There are also differences between Nordic keyboards and an English keyboard. Unfortunately, I have not found a way to actually read the location of a key, just its character.

The only workaround I have found so far is to have two keyboards in your settings (e.g. German and English), then switch to English keyboard when using VividTracker. Fortunately, this is easily done by holding down command and space to get up a menu where you can shift between the two languages by pressing space while you still hold the command button. However, it has to be done somewhere where you can type. In VividTracker, you will be able to do it when you are for instance renaming a mod. You can also do it in e.g. the Notes app.

I hope you find these limitations to be OK. Now I will carry on with implementing all this. :)