-
Notifications
You must be signed in to change notification settings - Fork 457
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
Fix plus keybind on Mac #2987
Fix plus keybind on Mac #2987
Conversation
I don't see why it would be closed, the ascii code 43 means + And i got 0_43 when i traced the values i got directly |
Also, my |
What mac do you have? |
I mean mac model, because it worked when i had a 2017 model, but not my 2023 model |
I do have a 2017, but then would this change break plus on 2017s |
It wouldnt break, pressing plus there would return a different keycode, which would return the key 61_187 which has no nativeCorrection mapping which then makes it point to FlxKey.PLUS (187) due to the code below var code = _nativeCorrection.get(e.charCode + "_" + e.keyCode);
return (code == null) ? e.keyCode : code; this pr is only if the key returns 0_43 |
aight let's test this, sorry for the misunderstanding Edit: if I were to find someone with a 2023 mac with an English keyboard layout, how would I have them test this? Edit2: Can you try this out using the virtual keyboard set to the English layout: |
what if you press +? |
When i said i pressed the ` button, that is the key which is equal to + when im on us keyboard layout |
It is not, refer back to the pictures I sent, plus is typically on the = key. Also please verify that you can change the volume with the + (=) key in a flixel game using this branch |
Pressing the + (=) key on us keyboard layout still works with this branch |
thanks! |
This allows pressing + on Mac. Might only work for Swedish Mac keyboards since i don't have a english keyboard