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

Does not use keycodes file (yet?) #34

Open
RonaldPR opened this issue Sep 15, 2017 · 9 comments
Open

Does not use keycodes file (yet?) #34

RonaldPR opened this issue Sep 15, 2017 · 9 comments

Comments

@RonaldPR
Copy link

The present releases do not (yet?) use the keycodes file, which makes use with non-US keyboard layouts difficult.

@rickyzhang82
Copy link

Even in US keyboard, when I specified keycode file in preference file, the guest OS crashed if I press any key.

It complains missing vendor 'cocoa'

./BasiliskII
Basilisk II V1.0 by Christian Bauer et al.
Reading ROM file...
Using SDL/coreaudio audio output
WARNING: Cannot find vendor 'cocoa' in keycode translation file /Users/Ricky/repo/68K.Mac/BasilikII/BasiliskII_keycodes.
Using SDL_Renderer driver: opengl
..

@RonaldPR
Copy link
Author

RonaldPR commented Sep 15, 2017

When I have the keycodes file specified
keycodefile /Users/ronald/Applications/BasiliskII/BasiliskII map/BasiliskII_keycodes
nothing remarkable happens, certainly no crashes.
But when I type text, the characters appear as if I use a US keyboard (which I do not). With older BasiliskII builds that do use the keycodes file, I get the correct characters from my Dutch keyboard.

(The Dutch keyboard is a QWERTY keyboard, much like the US QWERTY keyboard, but some characters, like ` and ~, are at different keys. I expect more problems with keyboards that are very different, like the French AZERTY keyboard.)

@rickyzhang82
Copy link

In Mac and Linux, I built BII with autotools.
In Mac, it crashed if I use keycodes.
In Linux, keyboard press has no response.
Mine is US keyboard.

@DavidLudwig
Copy link
Owner

@rickyzhang82 and @RonaldPR , can you post copies of the key-codes file(s) that you are trying to use?

@RonaldPR
Copy link
Author

The keycodes file here attached (zipped).
keycodes.zip

You may find the file with different names, but with identical content.
It is used for both BasiliskII and SheepShaver, in OSX, in Windows, and in Linux.

However, as shown in Terminal output, your builds do not know some BasiliskII prefs settings, among which the ones for the keycodes:

Basilisk II V1.0 by Christian Bauer et al.
WARNING: Unknown preferences keyword 'keycodes'
WARNING: Unknown preferences keyword 'keycodefile'
WARNING: Unknown preferences keyword 'mousewheelmode'
WARNING: Unknown preferences keyword 'mousewheellines'
WARNING: Unknown preferences keyword 'dsp'
WARNING: Unknown preferences keyword 'mixer'
WARNING: Unknown preferences keyword 'ignoresegv'

In the prefs file the use of the keycodes file is configured like this:

keycodes true
keycodefile /path/keycodes

@rickyzhang82
Copy link

keycodes link for Mac

Build configure in Mac OS X

make clean
NO_CONFIGURE=1 ./autogen.sh
./configure --enable-sdl-video --enable-sdl-audio --disable-vosf --disable-jit-compiler --with-x --with-gtk --with-mon
make -j 32

Warning

./BasiliskII
Basilisk II V1.0 by Christian Bauer et al.
Reading ROM file...
WARNING: Cannot find vendor 'cocoa' in keycode translation file /Users/Ricky/repo/68k.Mac/BasilikII/keycodes.
Using SDL_Renderer driver: opengl

@rickyzhang82
Copy link

keycode link for Linux
build configure same as Mac OS X.
No warning. But some key cause crashed. All key map is wrong.

All my case is under English locale and US keyboard.

@jvernet
Copy link

jvernet commented Oct 3, 2017

I made a fork of David Ludwig macemu to add again keycode files in basilisk SDL2. Work on my French MacBook.
Please try and let me know.

@rickyzhang82
Copy link

@jvernet How about you send a PR to David's repo?

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

No branches or pull requests

4 participants