<commit_before>package com.morph.engine.input;

import com.morph.engine.core.Game;
import com.morph.engine.util.Pair;
import io.reactivex.Observable;
import org.lwjgl.glfw.GLFW;

import java.util.HashMap;
import java.util.stream.IntStream;

public class InputMapping {
    private HashMap<Integer, Runnable> keyPressed = new HashMap<>();
    private HashMap<Integer, Runnable> keyReleased = new HashMap<>();
    private HashMap<Integer, Runnable> keyTyped = new HashMap<>();

    private HashMap<Integer, Runnable> mousePressed = new HashMap<>();
    private HashMap<Integer, Runnable> mouseReleased = new HashMap<>();

    private HashMap<Integer, Runnable> keyUp = new HashMap<>();
    private HashMap<Integer, Runnable> keyDown = new HashMap<>();

    private HashMap<Integer, Runnable> mouseUp = new HashMap<>();
    private HashMap<Integer, Runnable> mouseDown = new HashMap<>();<commit_msg>Fixed InputMapping crashing on loading unmapped key<commit_after>package com.morph.engine.input;

import com.morph.engine.core.Game;
import com.morph.engine.util.Pair;
import io.reactivex.Observable;

import java.util.HashMap;

public class InputMapping {
    private HashMap<Integer, Runnable> keyPressed = new HashMap<>();
    private HashMap<Integer, Runnable> keyReleased = new HashMap<>();
    private HashMap<Integer, Runnable> keyTyped = new HashMap<>();

    private HashMap<Integer, Runnable> mousePressed = new HashMap<>();
    private HashMap<Integer, Runnable> mouseReleased = new HashMap<>();

    private HashMap<Integer, Runnable> keyUp = new HashMap<>();
    private HashMap<Integer, Runnable> keyDown = new HashMap<>();

    private HashMap<Integer, Runnable> mouseUp = new HashMap<>();
    private HashMap<Integer, Runnable> mouseDown = new HashMap<>();
{'fraction_non_alphanumeric': 0.12337294850028296, 'fraction_numerical': 0.0, 'mean_word_length': 5.247349823321555, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '976070', 'n_tokens_mistral': 500, 'n_tokens_neox': 477, 'n_words': 143}