Open cpcitor opened 6 years ago
Hello, sorry about the late reply, there seem to be two issues, first, the keyboard emulation for the non-Enterprise machines is a translation layer that maps Enterprise keys to Spectrum, CPC and TVC keys, this would not be easy to change. Second, there is no preset configuration file for French keyboards yet, only English and Hungarian, this affects all machines and is probably the reason why there are missing keys. You can configure the keyboard layout manually (Alt + I), it is possible however that correct support for French may also require workarounds in the code.
The mapping of CPC keys to Enterprise keys is as follows:
This layout is probably not intuitive, but it should be possible to create a map where each French PC key is translated to the position wise matching CPC key. The only issue is that the numeric keyboard is used for emulating the external joysticks by default, it can be mapped to anything, however.
I made an attempt at creating a French CPC keyboard map, on Linux with a US keyboard switched to FR layout. This is not perfect, as I suspected, some keys do not work correctly because they are interpreted by X or FLTK in a special way.
Hello. Came here from a Amstrad CPC forum where ep128emu was mentioned. Interesting emulator indeed, with some functions I never saw like tape partial rewind etc.
Summary
Running the emulator works fine, but many keys are not mapped and some are wrongly mapped.
Not being able to easily type a quote
"
makes it difficult to even run any software.System here is Ubuntu 16.04 AMD64 with french keyboard layout.
Details
Letter keys all work and conform to a translated mapping (rather than positional). Translated or positional key mapping is a matter of emulation policy and I think both are valid and best one depends on emulated application (typically: positional for games where relative positions are what matters, also positional for CPC masters who type with muscle memory instead of looking at their keyboard, translated for other cases including text entry and programming).
Local keyboard layout near-exactly matches main area of image below.
One difference is key
*µ
is physically one row below (right ofù%
instead of right of$£
).For reference, CPC6128 keyboard layout:![CPC keyboard](http://dine.fernando.free.fr/planet/keyboard.gif)
Anyway here is the result of systematic testing with my physical keyboard.
azertyuiop
are ok,^
and$
don't yield anything (same with shift).qsdfghjkl
are okay,ù
*
don't yield anything (same with shift).<wxcvbn,;:!
without shift,>WXCVBN?./§
with shift.<
yields nothing (same with shift)wxcvbn,;
are okay:
!
don't yield anything (same with shift, would expect/
§
),
with shift yields<
instead of?
;
with shift yields+
instead of.
&é"'(-è_çà)=
-
(on key 6) is okay'
(on key 4) yields:
1234567890°+
'
(on key 4) yields*
-
(on key 4) yields=
Ctrl
,Caps Lock
,Tab
Actions attempted
Clr
,Copy
,KeyPad-.
,F7
,F8
,F9
.Directions for improvement?
Copy
, etc).With such improvements, IMHO ep128emu has some potential for a wider user base.
What do you think? First step could be to hint me at how to get
Clr
,Copy
,KeyPad-.
,F7
,F8
,F9
working by manually editing a ASCII keyboard configuration file.Thanks a lot for your attention.
Additional information
Compiling from this commit: