Changes for Axis.Identifier changes. This includes renaming Axis to Component, and creating the Identifier objects for Key Axis and Button.

This commit is contained in:
endolf 2004-08-29 21:23:06 +00:00
parent e312d8dd34
commit fa132b2126
30 changed files with 1295 additions and 1347 deletions

View file

@ -25,8 +25,6 @@
*/
package net.java.games.input;
import net.java.games.input.Component.Identifier;
/**
* @author Jeremy
*

View file

@ -25,8 +25,6 @@
*/
package net.java.games.input;
import net.java.games.input.Component.Identifier;
/**
* @author Jeremy
*

View file

@ -25,9 +25,6 @@
*/
package net.java.games.input;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import net.java.games.input.Controller;
import net.java.games.input.ControllerEnvironment;
import net.java.games.util.plugins.Plugin;

View file

@ -30,8 +30,6 @@ import java.awt.Toolkit;
import java.awt.event.AWTEventListener;
import java.awt.event.KeyEvent;
import net.java.games.input.Keyboard.Key;
/**
* @author Jeremy
*
@ -50,7 +48,7 @@ public class AWTKeyboard extends StandardKeyboard implements AWTEventListener {
protected AWTKeyboard(String name) {
super(name);
buttonValues = new boolean[getAxes().length];
buttonValues = new boolean[getComponents().length];
buttonMap = new int[65535]; //has to be this big, as the values of KeyEvent keys are large
buttonMap[KeyEvent.VK_0] = Component.Identifier.Key._0.getKeyIndex();

View file

@ -31,7 +31,6 @@ import java.awt.Point;
import java.awt.Toolkit;
import java.awt.event.AWTEventListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import java.awt.event.MouseWheelEvent;
/**