|
Post by viceuser on Mar 13, 2016 3:38:03 GMT
Hello all,
I'm new to this board, but it looks like a great forum.
I've been having trouble trying to figure out how to map my PC keyboard's <caps lock> to <caps lock> in Vice's x128 emulation under either c128 (80 column) mode or under CP/M 3.0. Most of the online references are about the x64 emulation (which as far as I know doesn't even have a <caps lock> key). I have tried both the positional and symbolic mapping files. I'm pretty sure it's just about adding a line to the file, but I haven't the foggiest idea what that might be. Any help would be appreciated.
Thanks,
viceuser (Chuck)
|
|
|
Post by viceuser on Mar 13, 2016 5:43:01 GMT
Ok I've got the <caps lock> mapped to vice's <caps lock> and it works in c128 mode, but not in CP/M 3.0 mode. Reading through the "Commodore 128 CP/M User's Guide" it is apparent that the <caps lock> key is disabled under CP/M. It recommends the <shift lock> key instead. So now the problem is finding the scan line code for the <shift lock> key so I can map it to the PC's <caps lock> key.
Thanks,
viceuser (Chuck)
|
|
|
Post by gsteemso on Mar 14, 2016 13:10:37 GMT
As far as I know, the Shift Lock key does not have a distinct scan code within the Commodore (though VICE as an emulator may treat it differently, I honestly don't know). As far as the original hardware is concerned, the Shift Lock key duplicates one of the ordinary Shift keys (I think it was the left one on a C64) and only differs in that it physically locks down in the "on" position.
|
|
|
Post by viceuser on Mar 20, 2016 7:15:34 GMT
As far as I know, the Shift Lock key does not have a distinct scan code within the Commodore (though VICE as an emulator may treat it differently, I honestly don't know). As far as the original hardware is concerned, the Shift Lock key duplicates one of the ordinary Shift keys (I think it was the left one on a C64) and only differs in that it physically locks down in the "on" position. Thanks for the response. I kinda knew that from the manual, it appears to work the same way on the 128. But, in the emulator, there doesn't seem to be a way to map that function. You can only map the shift key with no method that I'm aware of to make it stay shifted until you shut it off. I'm really looking for either a code for vice's keyboard mapping file, or a method to keep shift shifted short of having to hold down the shift key manually as I type.
|
|
|
Post by hydrophilic on Mar 31, 2016 1:28:25 GMT
As I recall from source code of VICE (been quite a while now), the two keys CAPS LOCK and 40/80 were special case -- they internally/automatically implement the locking feature... it is (unfortunately) not part of the key configuration file.
Or put another way, VICE does *not* implement any locking feature on another key... thus it can't emulate Shift Lock...
Unless maybe you tried mapping the 40/80 key to act like the left (or right) SHIFT key ?
Also I think it is interesting you found solution to remap real/PC caps lock to the C128/emulated CAPS LOCK (problem solved), but then you said problem is it doesn't work in CP/M mode. About that, you read CP/M docs correctly, CAPS LOCK doesn't work in CP/M mode (because it is special line on the 8502 CPU, but the Z80 CPU is running things in CP/M mode). Anyway, the CP/M folks apparently thought about this problem for you! In CP/M mode you can press the C= key to toggle between normal and CAPS-LOCK mode. This is another way to solve the problem (already solved)... except it doesn't actually involve a locking key at all.
I'm guessing the C= key isn't the solution you want, but thought I should mention it for anybody else reading this thread with similar problem in CP/M mode.
|
|