INNER CODE UNIT · Java

mousePress

GiveJavaAChance/PolyrayGameEngine · src/polyray/BindSet.java:55

    public final void mousePress(float x, float y, int button) {
        MousePress r = this.mouseBindings.get(button);
        if (r == null) {
            if (parent != null) {
                parent.mousePress(x, y, button);
            }
            return;
        }
        r.run(x, y);
    }

    public final void keyPress(int key) {
        Runnable r = this.keyBindings.get(key);
        if (r == null) {
            if (parent != null) {
                parent.keyPress(key);
            }
            return;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…