Ok I think the implication seems to be that AltGr is actually represented as Control+RightAlt in Windows, so this is perhaps all normal. This means the code I'm using to get key translations is also wrong, as it was only "pressing" Alt when asking Windows for the translated value.
I've uploaded a new snapshot 2017-40605 - maybe better luck this time! This also contains some code from stackoverflow to do something with a console - which I'll probably have to remove or make optional depending on what it does (nothing under Wine).
xroar keyboard mapping for windows 7
Re: xroar keyboard mapping for windows 7
Hi Ciaran,
I have downloaded it and the difference is another window that apperars on starting up as a debug window ...
But I cannot figure how to get the @ sign without changing to 'native keyboard using the Ctrl+Z switch
Any hint will be appreciated
Thanks
pere
EDIT. I forgot to say that now AltGr+Q produces a Q on the screen instead of closing XRoar
I have downloaded it and the difference is another window that apperars on starting up as a debug window ...
But I cannot figure how to get the @ sign without changing to 'native keyboard using the Ctrl+Z switch
Any hint will be appreciated
Thanks
pere
EDIT. I forgot to say that now AltGr+Q produces a Q on the screen instead of closing XRoar
Re: xroar keyboard mapping for windows 7
Ok, I hijacked a general purpose Windows machine and spent my lunchtime hacking. I think I've got a fix, so will push out snapshots once I get home to where all the support libraries are up to date.
In case you're wondering: when asking Windows what symbol a key generates with various meta keys held using ToUnicode, you not only need to set the specific meta key state (e.g., VK_RMENU and VK_LCONTROL), but the side-agnostic version of it too (VK_MENU and VK_CONTROL), else you get nowt.
In case you're wondering: when asking Windows what symbol a key generates with various meta keys held using ToUnicode, you not only need to set the specific meta key state (e.g., VK_RMENU and VK_LCONTROL), but the side-agnostic version of it too (VK_MENU and VK_CONTROL), else you get nowt.
Re: xroar keyboard mapping for windows 7
Thanks a bunch, Ciaransixxie wrote:Ok, I hijacked a general purpose Windows machine and spent my lunchtime hacking. I think I've got a fix, so will push out snapshots once I get home to where all the support libraries are up to date.
In case you're wondering: when asking Windows what symbol a key generates with various meta keys held using ToUnicode, you not only need to set the specific meta key state (e.g., VK_RMENU and VK_LCONTROL), but the side-agnostic version of it too (VK_MENU and VK_CONTROL), else you get nowt.
We have lived with Ctrl+Z for a long time, so not in a hurry
cheers
pere
Ps adding -debug-ui -1 >> filename.txt makes all keypresses appear on the 'new' window, I mean press and release
but nothing gets printed to the outfile that ends being 0 bytes long. But nice to see the codes and how fast they
do repeat!
Re: xroar keyboard mapping for windows 7
Ok, new snapshot pushed!
I removed the console for now...
I removed the console for now...
Re: xroar keyboard mapping for windows 7
Works perfectly, Ciaran!sixxie wrote:Ok, new snapshot pushed!
I removed the console for now...
Now AltGr+2 creates the @ sign, so no need to be swithing back and forth
Thanks a lot!
cheers
pere
Re: xroar keyboard mapping for windows 7
Hmm, I don't see it anyway. xroar.exe is completely silent, even on failing parameters (w/o above redirection). Strange ... is my Win7 installation broken?Alastair wrote:For those using Windows you have to append ">> filename" to the command to get a file containing any output messages, e.g., xroar -debug-ui -1 >> stdout.txt
Edited: Didn't recognized the newer posts ...
Finally, with the new snapshot AltGr+Q leads correctly to @ - very fine. Thanks a lot, Ciaran!
Johann
The dragon on my side: http://klasek.at/hc/dragon/
Re: xroar keyboard mapping for windows 7
Hello Ciaran,
maybe I am going mad, but now I cannot enter the number 5
If I use previous version (snapshot 40605), I can enter FOR I=0 TO 255, no problems
But with snapshot 40657, the '5' key does not output anything on the screen
If I press CTRL+Z then the number 5 works well ... (?)
This is the whole start parameters collection I use. What is wrong here?
cheers
pere
maybe I am going mad, but now I cannot enter the number 5
If I use previous version (snapshot 40605), I can enter FOR I=0 TO 255, no problems
But with snapshot 40657, the '5' key does not output anything on the screen
If I press CTRL+Z then the number 5 works well ... (?)
This is the whole start parameters collection I use. What is wrong here?
Code: Select all
xroar -vo sdl -machine dragon64 -machine-cpu 6309 -extbas d64_1.rom -altbas d64_2.rom -machine-cart dragondos -cart-rom ddos40.rom -force-crc-match -disk-write-back -joy-left 0,0:1:0 -kbd-translate -lp-file ..\XRoar\sortida.txt
pere
Re: xroar keyboard mapping for windows 7
Ok that's very strange. Catalan layout? Looks pretty normal, not even a case of numerals being shifted. Can't see any reason for that offhand.pser1 wrote: maybe I am going mad, but now I cannot enter the number 5
I'll try and nab the Windows machine again and try it with a few different layouts (I only experimented with German before).
Edit: how about the shifted version of '5' btw? Any different?
..ciaran
Re: xroar keyboard mapping for windows 7
Hi, no 'special' keyboard layout chosen.sixxie wrote:Ok that's very strange. Catalan layout? Looks pretty normal, not even a case of numerals being shifted. Can't see any reason for that offhand.pser1 wrote: maybe I am going mad, but now I cannot enter the number 5
I'll try and nab the Windows machine again and try it with a few different layouts (I only experimented with German before).
Edit: how about the shifted version of '5' btw? Any different?
..ciaran
The shift 5 gives correctly the % sign ...
But prior version (40605) doesn't lose that 5 keystroke!
cheers
pere