Post by mirkosoft on Jul 26, 2014 20:06:16 GMT
Hi!
I'm back after ~month without PC - only my C128 was working...
I tried to remap VICE symbolic keymap using advices from Robert Willie and others.
As first I used AutoHotKey software to remap some keys this way:
lCtrl = lCtrl
rCtrl = lCtrl
lWin = Menu
rWin = Menu
lAlt = rCtrl
AltGr = rCtrl
Left and Right Control is used as Control key, Left and Right Windows is used as Commodore key, Alt and AltGr are used as Alt key, Apps key is used only for VICE Alt hotkeys.
Now I'm waiting for Japanese 109 key keyboard (I have prepared all Slovak and Commodore stickers) and have few Qs which I solved not to this date:
Every VICE user knows that Caps Lock key can be used in 128 emulation as CAPS LOCK/ASCII(DIN-CC) key - works normally like Caps is down.
I wanted to use Scroll Lock as SHIFT LOCK - problem is that Scroll Lock state "active" means not the same as Caps Lock.
I wanted use Num Lock as 40/80 Display key - the same problem as Scroll Lock
When we look at symbolic keymap:
# CAPS (ASCII/DIN) key
58 -4 1 /* Caps Lock -> CAPS */
#69 -1 -1 0 /* NumLock
*/
#70 -1 -1 0 /* Scroll Lock */
Here's mapping value -4 this I don't know what is really other (of course # means not used amd -1 is "no key").
# Negative row values:
# 'keysym -1 n' joystick #1, direction n
# 'keysym -2 n' joystick #2, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key
# 'keysym -4 1' CAPS (ASCII/DIN) key
Maybe negative values means that's switcher - so when I add to 40/80 key Num Lock value 69 why it works not like Caps Lock? It works only while I'm holding down Num Lock... or remap 2nd Restore key to SHIFT LOCK or 40/80 DISPLAY ?
In my keymap is used = key like on TED Series keyboard, but only Pi - is shifted, real TED keyboard has Pi used with Commodore key and Arrow Left is shifted.
This I did by help of Robert Willie:
43 6 5 40 /* \ -> = */
43 6 6 1 /* Shift+\ -> Pi */
and the same proceeding I used in Shift + 0 - Arrow Up key again inspired by TED Series:
11 4 3 40 /* 0 -> 0 */
11 6 6 0 /* Shift+0 -> Arrow Up */
That's ok, but I want to remap = key to use with shift Left Arrow (no problem only exchange Pi with it), but how to remap Pi to use with Commodore key? This I don't know.
Finally - I'm using Windows 8.1 (before Windows 8 I used only XP - never upgraded to Vista or 7). Since Windows 8 is keystroke Win+L lock workstation. When I leave it enabled, it's easy to lock desktop by simple mistake, so I disabled it. Then it looks like combination Win+L is dead key. But it's not - with AutoHotKey is possible to map there other function or character (I'm from Slovakia and my customized layout has there Polish character L (Ł) - this is Slovak standard).
I tried to remap keystroke Win+L to other key e.g. Del (this I have attached for L key in VICE layout 'cause CBM+L works not), so Q is here:
Is VICE mapping keys by hardware? It looks so in case of Win+L, looks not in case remapping Ctrl,Alt,Win and other modifiers... but in case remapping by AutoHotKey holding down Shift works not - so again looks so.
So, what's truth? VICE maps by hardware or by software and here comes new Q - is possible to use with VICE Japanese 109 key keyboard? If, how?
At end of this post I give summary of Qs and little info about The Ace:
How to map any key for use with Commodore key? (like can be remapped with using shift without Matrix change)
How to map Scroll Lock and Num Lock like Caps Lock as SHIFT LOCK or 40/80 DISPLAY - not only by holding it down ?
How to map keystroke Win+L (in this case CBM+L) - in Windows XP it was working, in 8.0 and 8.1 not ?
Info: The Ace progress looks good... I prepqared live blog for daily info and user comments and reactions, when it will be possible I give there first report and give link.
Thank you for all help, reading it and also for replies and comments.
Miro
I'm back after ~month without PC - only my C128 was working...
I tried to remap VICE symbolic keymap using advices from Robert Willie and others.
As first I used AutoHotKey software to remap some keys this way:
lCtrl = lCtrl
rCtrl = lCtrl
lWin = Menu
rWin = Menu
lAlt = rCtrl
AltGr = rCtrl
Left and Right Control is used as Control key, Left and Right Windows is used as Commodore key, Alt and AltGr are used as Alt key, Apps key is used only for VICE Alt hotkeys.
Now I'm waiting for Japanese 109 key keyboard (I have prepared all Slovak and Commodore stickers) and have few Qs which I solved not to this date:
Every VICE user knows that Caps Lock key can be used in 128 emulation as CAPS LOCK/ASCII(DIN-CC) key - works normally like Caps is down.
I wanted to use Scroll Lock as SHIFT LOCK - problem is that Scroll Lock state "active" means not the same as Caps Lock.
I wanted use Num Lock as 40/80 Display key - the same problem as Scroll Lock
When we look at symbolic keymap:
# CAPS (ASCII/DIN) key
58 -4 1 /* Caps Lock -> CAPS */
#69 -1 -1 0 /* NumLock
*/
#70 -1 -1 0 /* Scroll Lock */
Here's mapping value -4 this I don't know what is really other (of course # means not used amd -1 is "no key").
# Negative row values:
# 'keysym -1 n' joystick #1, direction n
# 'keysym -2 n' joystick #2, direction n
# 'keysym -3 0' first RESTORE key
# 'keysym -3 1' second RESTORE key
# 'keysym -4 0' 40/80 column key
# 'keysym -4 1' CAPS (ASCII/DIN) key
Maybe negative values means that's switcher - so when I add to 40/80 key Num Lock value 69 why it works not like Caps Lock? It works only while I'm holding down Num Lock... or remap 2nd Restore key to SHIFT LOCK or 40/80 DISPLAY ?
In my keymap is used = key like on TED Series keyboard, but only Pi - is shifted, real TED keyboard has Pi used with Commodore key and Arrow Left is shifted.
This I did by help of Robert Willie:
43 6 5 40 /* \ -> = */
43 6 6 1 /* Shift+\ -> Pi */
and the same proceeding I used in Shift + 0 - Arrow Up key again inspired by TED Series:
11 4 3 40 /* 0 -> 0 */
11 6 6 0 /* Shift+0 -> Arrow Up */
That's ok, but I want to remap = key to use with shift Left Arrow (no problem only exchange Pi with it), but how to remap Pi to use with Commodore key? This I don't know.
Finally - I'm using Windows 8.1 (before Windows 8 I used only XP - never upgraded to Vista or 7). Since Windows 8 is keystroke Win+L lock workstation. When I leave it enabled, it's easy to lock desktop by simple mistake, so I disabled it. Then it looks like combination Win+L is dead key. But it's not - with AutoHotKey is possible to map there other function or character (I'm from Slovakia and my customized layout has there Polish character L (Ł) - this is Slovak standard).
I tried to remap keystroke Win+L to other key e.g. Del (this I have attached for L key in VICE layout 'cause CBM+L works not), so Q is here:
Is VICE mapping keys by hardware? It looks so in case of Win+L, looks not in case remapping Ctrl,Alt,Win and other modifiers... but in case remapping by AutoHotKey holding down Shift works not - so again looks so.
So, what's truth? VICE maps by hardware or by software and here comes new Q - is possible to use with VICE Japanese 109 key keyboard? If, how?
At end of this post I give summary of Qs and little info about The Ace:
How to map any key for use with Commodore key? (like can be remapped with using shift without Matrix change)
How to map Scroll Lock and Num Lock like Caps Lock as SHIFT LOCK or 40/80 DISPLAY - not only by holding it down ?
How to map keystroke Win+L (in this case CBM+L) - in Windows XP it was working, in 8.0 and 8.1 not ?
Info: The Ace progress looks good... I prepqared live blog for daily info and user comments and reactions, when it will be possible I give there first report and give link.
Thank you for all help, reading it and also for replies and comments.
Miro