randyrossi / bmc64

A bare metal Commodore 64 emulator for the Raspberry Pi with true 50hz/60hz smooth scrolling, low input latency and better audio/video sync.
GNU General Public License v3.0
491 stars 59 forks source link

mapping for French keyboard #243

Open jmmparis opened 1 year ago

jmmparis commented 1 year ago

Hello, BMC64 was a fabulous emulator, thanks a lot for make and share it. I'm trying to map a french keyboard (symbol mapping) and the # key need the use of ALT-GR + 3 , is somebody has an idear to do it ? I'm also looking for all the scancodes names, where can I find them ?

thx a lot

randyrossi commented 1 year ago

You could map Alt_R to 6 4 4 which would make it a right shift key. Then the combo would be equivalent to Shift + 3 which is #.

On Sat, Sep 30, 2023 at 1:25 PM jmmparis @.***> wrote:

Hello, BMC64 was a fabulous emulator, thanks a lot for make and share it. I'm trying to map a french keyboard (symbol mapping) and the # key need the use of ALT-GR + 3 , is somebody has an idear to do it ? I'm also looking for all the scancodes names, where can I find them ?

thx a lot

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKGDWPAON6SEXORDC2DX5BIY3ANCNFSM6AAAAAA5NWACMM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Randy Rossi

jmmparis commented 1 year ago

Thanks for your answer Radyrossi, but Shift + 3 is already used, there is 3 mapping for the '3' key on french keyboard (we don't like to keep it simple ;) ) 3 --> " Shift + 3 --> 3 Alt_Gr +3 --> # (and also with '5' key : '5' -> (, shift +5 -> 5, Alt_Gr +5 -> [ ) at first I just thought to use left shift and right shift with the shiftflag but I don't know if we can declare a key more than twice. I see the shifflag =2 for left shift and 4 for the right shift but it doesn't seem intended to the keyboard detection. I look in the last version of Vice emulation and they add the Alt_GR in the shiftflag keyboard mapping, perhaps it's to support keyboards like french