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

Key Binds won't work on mac on 1.20.40+ #940

Open
UrbaneSundew589 opened this issue Jan 27, 2024 · 4 comments
Open

Key Binds won't work on mac on 1.20.40+ #940

UrbaneSundew589 opened this issue Jan 27, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@UrbaneSundew589
Copy link

Problem
Option, Command and other key won't work in Mac OS Sonoma M1

To Reproduce
Steps to reproduce the behavior:

  1. Go on Mac OS Sonoma M1 on Minecraft 1.20.40+
  2. Go to Keybind settings
  3. Try to change any Keybinds to option or command key
  4. See Error

Expected behavior
The keys should be working In-game

Desktop

  • OS: macOS
  • Version x86_64-0 . 2.448 (Build 448)
  • Installation Type Dmg
@UrbaneSundew589 UrbaneSundew589 added the bug Something isn't working label Jan 27, 2024
@ChristopherHX
Copy link
Member

Mojang removed debugging symbols of keyboard input in that game version.

The mod that supported such keys stopped working and has been disabled, for game versions without required debugging information.

Technically such keys could be remapped to valid android keys of the game, but that requires a new User Interface and you have to configure them first in the launcher and then in the game.

The android key to win32 (Microsoft put their key mapping internally into the game) key mapping on minecraft android is incomplete and lacks key defined by android.

@UrbaneSundew589
Copy link
Author

So is there anyway to fix this issue?

@ChristopherHX
Copy link
Member

ChristopherHX commented Jan 29, 2024

So is there anyway to fix this issue?

Edit the alt and super key to point to working keys that's all you can do
https://github.com/minecraft-linux/mcpelauncher-client/blob/47337501f8e0003ee36913e4c10dc4785db09395/src/window_callbacks.cpp#L448-L455

Then compile mcpelauncher-manifest with your change, you probably tell me that you don't want to do that.

Actually just edit the file by creating a fork mcpelauncher-client open a pull request, I appove that the CI will build you your own dmg file that you can use.

ALT (OPTION), SUPER (COMMAND) are both dead keys on android 9.

How would you like to map the dead keys (OPTION, COMMAND) to get recognized by the game?

OPTION to NUM_0?
COMMAND to NUM_1?
It really depends on which keys a user want to use, in case someone uses the real NUM_0/NUM_1 key than this would be a bug for them.

You can also tell mojang that they should add a mapping in the Android Version of Minecraft for ALT (OPTION), SUPER (COMMAND) keys.

@UrbaneSundew589
Copy link
Author

I am so sorry but I'm not good at technical things, Thank you so much for this but I can't understand anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants