mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-04-07 15:35:10 +00:00
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:
parent
e312d8dd34
commit
fa132b2126
30 changed files with 1295 additions and 1347 deletions
|
|
@ -25,8 +25,6 @@
|
|||
*/
|
||||
package net.java.games.input;
|
||||
|
||||
import net.java.games.input.Component.Identifier;
|
||||
|
||||
/**
|
||||
* @author Jeremy
|
||||
*
|
||||
|
|
|
|||
|
|
@ -25,8 +25,6 @@
|
|||
*/
|
||||
package net.java.games.input;
|
||||
|
||||
import net.java.games.input.Component.Identifier;
|
||||
|
||||
/**
|
||||
* @author Jeremy
|
||||
*
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue