Skip to content

Commit dd48ea4

Browse files
authored
fixes #548 (#608)
1 parent fdcd441 commit dd48ea4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/main/java/net/coderbot/iris/Iris.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,11 @@ public class Iris {
9292
private static PipelineManager pipelineManager;
9393
private static IrisConfig irisConfig;
9494
private static FileSystem zipFileSystem;
95-
private static final KeyMapping reloadKeybind = new KeyMapping("iris.keybind.reload", InputConstants.Type.KEYSYM, GLFW.GLFW_KEY_R, "iris.keybinds");
96-
private static final KeyMapping toggleShadersKeybind = new KeyMapping("iris.keybind.toggleShaders", InputConstants.Type.KEYSYM, GLFW.GLFW_KEY_K, "iris.keybinds");
97-
private static final KeyMapping shaderpackScreenKeybind = new KeyMapping("iris.keybind.shaderPackSelection", InputConstants.Type.KEYSYM, GLFW.GLFW_KEY_O, "iris.keybinds");
98-
private static final KeyMapping wireframeKeybind = new KeyMapping("iris.keybind.wireframe", InputConstants.Type.KEYSYM, InputConstants.UNKNOWN.getValue(), "iris.keybinds");
95+
96+
private static KeyMapping reloadKeybind;
97+
private static KeyMapping toggleShadersKeybind;
98+
private static KeyMapping shaderpackScreenKeybind;
99+
private static KeyMapping wireframeKeybind;
99100

100101
private static final Map<String, String> shaderPackOptionQueue = new HashMap<>();
101102
// Flag variable used when reloading
@@ -132,6 +133,11 @@ public Iris() {
132133
* <p>This is called right before options are loaded, so we can add key bindings here.</p>
133134
*/
134135
public static void onEarlyInitialize() {
136+
reloadKeybind = new KeyMapping("iris.keybind.reload", InputConstants.Type.KEYSYM, GLFW.GLFW_KEY_R, "iris.keybinds");
137+
toggleShadersKeybind = new KeyMapping("iris.keybind.toggleShaders", InputConstants.Type.KEYSYM, GLFW.GLFW_KEY_K, "iris.keybinds");
138+
shaderpackScreenKeybind = new KeyMapping("iris.keybind.shaderPackSelection", InputConstants.Type.KEYSYM, GLFW.GLFW_KEY_O, "iris.keybinds");
139+
wireframeKeybind = new KeyMapping("iris.keybind.wireframe", InputConstants.Type.KEYSYM, InputConstants.UNKNOWN.getValue(), "iris.keybinds");
140+
135141
try {
136142
if (!Files.exists(getShaderpacksDirectory())) {
137143
Files.createDirectories(getShaderpacksDirectory());

0 commit comments

Comments
 (0)