Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faulty spanish keyboard #227

Open
Noobsaibot73 opened this issue Oct 8, 2022 · 8 comments
Open

Faulty spanish keyboard #227

Noobsaibot73 opened this issue Oct 8, 2022 · 8 comments
Labels

Comments

@Noobsaibot73
Copy link

Hello,
I'm experiencing a trouble when running this emulator, if you select the spanish CPC and choose ES_Linux or es ES_Windows keyboard, the "ñ" key is not working at all, and no way to get the "|" sign in order to change from disk to tape.
On the other hand, if I select a CPC 464 rom, change memory to 64 kb, select spanish version of the CPC, spanish keyboard, change load from disk to tape, select a tape to load, and perform a cat, I get the "Drive A: disc missing" message (seems that changes are saved, but not applied).
No way to get working the spanish version of the CPC keyboard, and no matter if you choose a CPC 464 rom, you are always using disks, even if you change load to tape.

@ColinPitrat
Copy link
Owner

I'll look into the keyboard issue.
Note that you can use the virtual keyboard for typing unaccessible characters (shift+F1).

I'm not sure I understand your last problem.

What do you mean by selecting 464 ROM? Do you mean switching the model to 464 in the menu or configuration file?

How do you change load from disk to tape? Normally it's done through "|tape" command but as you can't type a pipe...

@ColinPitrat ColinPitrat added the bug label Oct 9, 2022
@Noobsaibot73
Copy link
Author

Noobsaibot73 commented Oct 9, 2022 via email

@ColinPitrat
Copy link
Owner

Indeed, that is a regression! Thanks for catching it, I'll have a look.

@ColinPitrat
Copy link
Owner

Keeping this issue for the keyboard issue and opening #228 for the ROM issue.

@ColinPitrat ColinPitrat changed the title Faulty spanish keyboard and CPC 464 Rom is running disks Faulty spanish keyboard Oct 9, 2022
ColinPitrat added a commit that referenced this issue Oct 9, 2022
… it by setting a ROM on slot 7, which will then be kept across model changes. #227
@ColinPitrat ColinPitrat reopened this Oct 9, 2022
@ColinPitrat
Copy link
Owner

I managed to open a separate bug and use the wrong one in the commit :-)

@ColinPitrat
Copy link
Owner

Coming back to the keyboard, it's always quite hard for me to test and fix because I'm only under linux and I got reports that windows was sending different keycodes than linux in SDL (hence the split of linux & windows keymap files).

Switching my layout to spanish under linux and setting spanish keyboard and keymap_es_linux.map I have no issue typing ñ and Ñ (using the key below P) and | (using AltGr + 1).

With keymap_es_win.map the ñ and Ñ don't work anymore (expected as I'm not under windows) but | still works with the same key combination.

One thing you can try is creating your own copy of keymap_es_win.map (or linux) under resources/ and edit it to see if you can get it to work as you want.

To help you with this, you should be able to run ./cap32 -v in a terminal. Then when you press keys, you'll see lines like:

VERBOSE src/cap32.cpp:2780 - Keyboard: pressed: M - keycode: SDLK_m (109) - scancode: SDL_SCANCODE_SEMICOLON (51)

You're interested into what the output is when you try to input ñ, Ñ and |.

Personally, with a spanish layout, I have:

For ñ:

VERBOSE src/cap32.cpp:2780 - Keyboard: pressed: ñ - keycode:  (241) - scancode: SDL_SCANCODE_SEMICOLON (51)

For Ñ (in two steps: one line when pressing shift, the other when pressing the letter):

VERBOSE src/cap32.cpp:2780 - Keyboard: pressed: Left Shift - keycode: SDLK_LSHIFT (1073742049) - scancode: SDL_SCANCODE_LSHIFT (225)
VERBOSE src/cap32.cpp:2780 - Keyboard: pressed: ñ - keycode:  (241) - scancode: SDL_SCANCODE_SEMICOLON (51)

For | (in two steps too):

VERBOSE src/cap32.cpp:2780 - Keyboard: pressed: Right Alt - keycode: SDLK_RALT (1073742054) - scancode: SDL_SCANCODE_RALT (230)
VERBOSE src/cap32.cpp:2780 - Keyboard: pressed: 1 - keycode: SDLK_1 (49) - scancode: SDL_SCANCODE_1 (30)

@Noobsaibot73
Copy link
Author

Noobsaibot73 commented Oct 11, 2022 via email

@Noobsaibot73
Copy link
Author

Noobsaibot73 commented Oct 11, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants