Package de.tum.cit.ase.editor.input
Class KeyMapper
java.lang.Object
de.tum.cit.ase.editor.input.KeyMapper
The KeyMapper class is responsible for converting key codes based on the current layout.
It provides a static method to convert a key using the current layout.
The layout is determined based on the value of GLFW.GLFW_KEY_Y.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
convertKey
(int key) Converts a key code based on the current layout.
-
Field Details
-
layout
-
-
Constructor Details
-
KeyMapper
public KeyMapper()
-
-
Method Details
-
convertKey
public static int convertKey(int key) Converts a key code based on the current layout.- Parameters:
key
- the key code to be converted- Returns:
- the converted key code
-