/*
 * This file is part of EmergencyLanding, licensed under the MIT License (MIT).
 *
 * Copyright (c) TechShroom Studios <http://techshoom.com>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package com.techshroom.emergencylanding.library.lwjgl.control;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.util.HashMap;
import java.util.Map;

import org.lwjgl.glfw.GLFW;
import org.lwjgl.glfw.GLFWKeyCallback;

/**
 * A class that uses the AWT event system for callbacks on {@link KeyEvent
 * KeyEvents}. Does not call the {@link KeyListener#keyTyped(KeyEvent)} method.
 * 
 * @author Kenzie Togami
 * 
 */
public final class Keys implements GLFWKeyCallback {

    private static final Map<Long, Keys> helperMap = new HashMap<>();

    public static Keys getHelper(long window) {
        Keys help = helperMap.computeIfAbsent(window, Keys::new);
        return help;
    }

    private final GLFWKeyCallback thisKCB = GLFWKeyCallback.create(this);

    private Keys(long window) {
        GLFW.glfwSetKeyCallback(window, this.thisKCB);
    }

    @Override
    public void invoke(long window, int key, int scancode, int action,
            int mods) {
    }

}

@@ -1493,16 +1493,56 @@
 allback;
+%0Aimport org.lwjgl.glfw.GLFWKeyCallbackI;
 %0A%0A/**%0A *
@@ -1781,16 +1781,17 @@
 Callback
+I
  %7B%0A%0A    

Update for one more change of LWJGL