-
Help With International Key Codes
That's actually a great idea. This could also be a useful concept for sorting the unwieldy list of bindings on the left. The only flaw I can see is that the keys will not appear unless there is something already bound to it, which would require a trip to vanilla controls gui, but this is small. I think I will try to implement this as a sorting function first. Thanks a ton!
-
Help With International Key Codes
I was able to set a keybind to the umlauts on a QWERTZ keyboard, however this may be Minecraft's trickery not lwgjl. I guess I'll just have to dig deeper into the source to see what's going on there.
-
Help With International Key Codes
I draw each key with a for loop that counts through the lwgjl ids: for (int i=2; i<14; i++) { button = new GuiButton(this.currentId, (startX+rowPos*30), startY, 25, 20, translateKey(i)); this.buttonList.add(button); currentId++; } I use translateKey(int id), which is just a modified version of Keyboard.getKeyName(int id), to get the name of the key. The id is also used to with setKeyModifierAndCode
-
Help With International Key Codes
I probably should have added this to my original post, but here's the link to the mod I'm on the Minecraft Forums: http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/2802980-1-10-2-keyboard-wizard-key-conflict-helper I use the codes to draw the keys on the screen, as well as change the current binding when the key is pressed.
-
Help With International Key Codes
If I understand correctly getEventCharacter returns the character that was pressed such as 'a' if i pressed the A key. I am looking for an easy way to find the numerical codes for international keys other then pressing each one by one and printing the result of KeyBinding .getKeyCode(). Right now, however, it looks like this in the only way.
-
Help With International Key Codes
Thanks for the effort anyway.
-
Help With International Key Codes
I am drawing a keyboard on the screen to help visualize and fix key conflicts. When you hover over the keys on the screen, text pops up to show you what they key is bound to. To accomplish this, I just iterate through a list of keybindings and search for ones that match the key code. No, it's not broken.
-
Help With International Key Codes
I am currently working on a mod that requires me to know the LWGJL codes for keys on the keyboard. Luckily the Keyboard class has static fields that correspond to the keys of a QWERTY keyboard. However, I am now trying to add international support and I cannot find an easy way to get codes for keys such as umlauts. I am currently doing it by printing the output of the getKeyCode() method in net.minecraft.client.settings.KeyBinding when a binding is changed in the controls gui, but this is impractical for anything more than a few codes. Does anyone know of an easier way to get these codes?
IPS spam blocked by CleanTalk.