From 1fb7799ff91729285bf145b2c78f9233a61ac35c Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 15 Feb 2009 14:54:15 -0500 Subject: Engine: Fixed MessageWindow bug Previously, MessageWindow would, on occasion, throw out an ArrayIndexOutOfBoundsException. This may have been because of some keyboard input. Because of this, the keyboard input system has been re-written to be anologous to the Display system (Renderable). Now, only one input processor will run at a time because they are executed in order by KeyboardInput, rather than all at once using AWT event handlers. --- src/com/fourisland/fourpuzzle/util/Inputable.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/com/fourisland/fourpuzzle/util/Inputable.java (limited to 'src/com/fourisland/fourpuzzle/util') diff --git a/src/com/fourisland/fourpuzzle/util/Inputable.java b/src/com/fourisland/fourpuzzle/util/Inputable.java new file mode 100644 index 0000000..9b108b9 --- /dev/null +++ b/src/com/fourisland/fourpuzzle/util/Inputable.java @@ -0,0 +1,17 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ + +package com.fourisland.fourpuzzle.util; + +import com.fourisland.fourpuzzle.KeyInput; + +/** + * + * @author hatkirby + */ +public interface Inputable { + + public void processInput(KeyInput key); +} -- cgit 1.4.1