Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Shortcuts are wrong on non-QWERTY keyboards. #32

Open
miyoyo opened this issue Apr 5, 2017 · 3 comments
Open

Shortcuts are wrong on non-QWERTY keyboards. #32

miyoyo opened this issue Apr 5, 2017 · 3 comments

Comments

@miyoyo
Copy link

miyoyo commented Apr 5, 2017

While the minecraft OC returns codes adjusted for different keyboard layouts, the emulator only adjusts the returned char. Applications (such as edit) that rely on the Ctrl+* event, which only returns the letter (from 1 to 26) as well as the code of the pressed key, don't work correctly.

Recording of A press (Same position as Q on qwerty)

Recording of CTRL+Keys, and CTRL+AZERTY/CTRL+QWERTY

(Side note, but probably nitpicking, in minecraft OC, the hard drive folder is only read on startup to ram, and flushed to on either file creation, or unload of the computer)

@gamax92
Copy link
Collaborator

gamax92 commented Apr 5, 2017

In minecraft OC, you can set bufferChanges to false and it doesn't do that behavior anymore, instead immediately writing changes to disk and not caching stuff old files and directory layouts

But thank you for the report, will look into fixing it soon.

@miyoyo
Copy link
Author

miyoyo commented Apr 6, 2017

One way to do it would be to ignore the scancode from SDL and create it based on the keycode.

Explained here

@gamax92
Copy link
Collaborator

gamax92 commented Apr 6, 2017

Hmm slightly confused, when I set my keyboard layout to something different like dvorak, I'll get the same key code and lwjgl code in both MC and OCEmu

EDIT: Well I had someone with a real QWERTZ keyboard report back as well, seems that merely changing the keyboard layout settings doesn't work, has to be a real keyboard. I'll attempt to fix this then by using the keycode.

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

No branches or pull requests

2 participants