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
474 stars 56 forks source link

[FR] Possibility to assign END key in .vkm #234

Closed Eddepad closed 1 year ago

Eddepad commented 1 year ago

Maybe I'm doing it wrong, but I can't assign/map the END key from modern keyboard in the .vkm file (C64). Is it possible to add this one? Thanks,

randyrossi commented 1 year ago

What commodore 64 key are you trying to assign to the END key? If you have a Linux machine, can you find which keysym it reports when you press END?

On Thu, May 4, 2023 at 5:06 AM Eddepad @.***> wrote:

Maybe I'm doing it wrong, but I can't assign the END key in de keyboard .vkm file in C64 mode. Is it possible to add this one? Thanks,

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

-- Randy Rossi

Eddepad commented 1 year ago

I have a keycap set like on this site / picture:

https://massdrop-s3.imgix.net/product-images/buger-hammerworks-crp-c64-dye-subbed-keycap-set/FP/x7CL5EbZQjamKSEsDVJO_3.png (hope this link work)

In BMC I tried to assign this END key to for example the UP arrow at the C64, but that didn't work. Other keys for the C64 also did not work. Using the END key on my keyboard to navigate in BMC however does work.

randyrossi commented 1 year ago

Can you paste what lines you are changing/adding to the .vkm file?

On Thu, May 4, 2023 at 8:32 AM Eddepad @.***> wrote:

I have a keycap set like on this site / picture:

https://massdrop-s3.imgix.net/product-images/buger-hammerworks-crp-c64-dye-subbed-keycap-set/FP/x7CL5EbZQjamKSEsDVJO_3.png http://url (hope this link work)

In BMC I tried to assign this END key to for example the UP arrow at the C64, but that didn't work. Other keys for the C64 also did not work. Using the END key on my keyboard to navigate in BMC however does work.

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/234#issuecomment-1534698065, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKC6RRPCLEM5UFYMMT3XEOOWVANCNFSM6AAAAAAXVPX2VA . You are receiving this because you commented.Message ID: @.***>

-- Randy Rossi

Eddepad commented 1 year ago

For example, see last line which I add manualy:

rpi_sym.vkm ... Home 6 0 8 / Home -> Pound / Up 0 7 1 / Up -> CRSR UP / Down 0 7 8 / Down -> CRSR DOWN / Insert 0 0 1 / Insert -> INS / Del 6 3 8 / Delete -> DEL / Left 0 2 1 / Left -> Left / Right 0 2 8 / Right -> Right / End 6 6 8 / End -> UP arrow /

mcgurk commented 1 year ago

If your file really is exactly like that, then everything else than "Home 6 0 8" is commented out. / starts comment and / ends comment and everything between them are ignored.

randyrossi commented 1 year ago

Yes, change it to this:

Home 6 0 8 / Home -> Pound */Up 0 7 1 / Up -> CRSR UP /Down 0 7 8 / Down -> CRSR DOWN /Insert 0 0 1 / Insert -> INS /Del 6 3 8 / Delete -> DEL /Left 0 2 1 / Left -> Left /Right 0 2 8 / Right -> Right /End 6 6 8 /* End -> UP arrow /

So each comment is enclosed with / and /

On Thu, May 4, 2023 at 10:09 AM Jarno Lehtinen @.***> wrote:

If your file really is exactly like that, then everything else than "Home 6 0 8" is commented out. / starts comment and / ends comment and everything between them are ignored.

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/234#issuecomment-1534852445, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKD3XXEKCWEJQFVAJW3XEO2DLANCNFSM6AAAAAAXVPX2VA . You are receiving this because you commented.Message ID: @.***>

-- Randy Rossi

Eddepad commented 1 year ago

Sorry, the code with copy/past didn't exactly work here,

But the code which I refer to is: End 6 6 8

randyrossi commented 1 year ago

That should work. Can you attach the entire file? The file you are editing (rpi_sym.vks or rpi_pos.vkm) matches the setting you have in the menu (symbolic / positional) ? Is it possible you are editing the wrong file? There are two types of mappings.

On Thu, May 4, 2023 at 10:39 AM Eddepad @.***> wrote:

Sorry, the code with copy/past didn't exactly work here,

But the code which I refer to is: End 6 6 8

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/234#issuecomment-1534901291, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKHEXFN6EBQGSWLGZ6LXEO5Q7ANCNFSM6AAAAAAXVPX2VA . You are receiving this because you commented.Message ID: @.***>

-- Randy Rossi

Eddepad commented 1 year ago

Thanks for all the reply's and effort. On BMC I work with version 3.9 and in BMC menu keyboard is set to symbolic. All other key settings that I changed manualy in the vkm work fine.

The vkm file can be found here temporary: http://home.kabelfoon.nl/~eddie/rpi_sym.vkm

randyrossi commented 1 year ago

Ah. I found the problem. The End key is missing from one of the keyboard mapping functions. I'll have to fix it and update the 4.1 build. I'll post an update to this thread once it's been updated.

On Thu, May 4, 2023 at 2:10 PM Eddepad @.***> wrote:

Thanks for all the reply's and effort. On BMC I work with version 3.9 and in BMC menu keyboard is set to symbolic. All other key settings that I changed manualy in the vkm work fine.

The vkm file can be found here temporary: http://home.kabelfoon.nl/~eddie/rpi_sym.vkm

— Reply to this email directly, view it on GitHub https://github.com/randyrossi/bmc64/issues/234#issuecomment-1535202176, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAI3HKBCVE4QOVWWXM4CMF3XEPWJBANCNFSM6AAAAAAXVPX2VA . You are receiving this because you commented.Message ID: @.***>

-- Randy Rossi

Eddepad commented 1 year ago

Thanks @randyrossi for your time. I thought I throw this one in because I saw an update on the lemon forum on 4.1 :)

randyrossi commented 1 year ago

Should be fixed now in bmc64-4.1.files.zip available at https://accentual.com/bmc64/downloads/