Package zombie.input
Class JoypadManager
java.lang.Object
zombie.input.JoypadManager
public class JoypadManager
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
JoypadManager.Joypad
-
Field Summary
Fields Modifier and Type Field Description java.util.HashSet
ActiveControllerNames
static JoypadManager
instance
java.util.ArrayList
JoypadList
JoypadManager.Joypad[]
Joypads
JoypadManager.Joypad[]
JoypadsController
-
Constructor Summary
Constructors Constructor Description JoypadManager()
-
Method Summary
Modifier and Type Method Description JoypadManager.Joypad
addJoypad(int controller, java.lang.String name)
void
assignJoypad(int controller, int player)
float
getAimingAxisX(int c)
float
getAimingAxisY(int c)
float
getDeadZone(int c, int axis)
JoypadManager.Joypad
getFromControllerID(int id)
JoypadManager.Joypad
getFromPlayer(int player)
long
getLastActivity(int c)
float
getMovementAxisX(int c)
float
getMovementAxisY(int c)
boolean
isAPressed(int c)
boolean
isBPressed(int c)
boolean
isDownPressed(int c)
boolean
isL3Pressed(int c)
boolean
isLBPressed(int c)
boolean
isLeftPressed(int c)
boolean
isLTPressed(int c)
boolean
isR3Pressed(int c)
boolean
isRBPressed(int c)
boolean
isRightPressed(int c)
boolean
isRTPressed(int c)
boolean
isUpPressed(int c)
boolean
isXPressed(int c)
boolean
isYPressed(int c)
void
onPressed(int c, int i)
void
onPressedAxis(int c, int i)
void
onPressedAxisNeg(int c, int i)
void
onPressedPov(int c)
void
reloadControllerFiles()
void
Reset()
void
saveControllerSettings(int c)
void
setControllerActive(java.lang.String name, boolean active)
void
setDeadZone(int c, int axis, float value)
void
syncActiveControllers()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
instance
-
Joypads
-
JoypadsController
-
JoypadList
public java.util.ArrayList JoypadList -
ActiveControllerNames
public java.util.HashSet ActiveControllerNames
-
-
Constructor Details
-
JoypadManager
public JoypadManager()
-
-
Method Details
-
addJoypad
-
reloadControllerFiles
public void reloadControllerFiles() -
assignJoypad
public void assignJoypad(int controller, int player) -
getFromPlayer
-
getFromControllerID
-
onPressed
public void onPressed(int c, int i) -
isDownPressed
public boolean isDownPressed(int c) -
isUpPressed
public boolean isUpPressed(int c) -
isRightPressed
public boolean isRightPressed(int c) -
isLeftPressed
public boolean isLeftPressed(int c) -
isLBPressed
public boolean isLBPressed(int c) -
isRBPressed
public boolean isRBPressed(int c) -
isL3Pressed
public boolean isL3Pressed(int c) -
isR3Pressed
public boolean isR3Pressed(int c) -
isRTPressed
public boolean isRTPressed(int c) -
isLTPressed
public boolean isLTPressed(int c) -
isAPressed
public boolean isAPressed(int c) -
isBPressed
public boolean isBPressed(int c) -
isXPressed
public boolean isXPressed(int c) -
isYPressed
public boolean isYPressed(int c) -
getMovementAxisX
public float getMovementAxisX(int c) -
getMovementAxisY
public float getMovementAxisY(int c) -
getAimingAxisX
public float getAimingAxisX(int c) -
getAimingAxisY
public float getAimingAxisY(int c) -
onPressedAxis
public void onPressedAxis(int c, int i) -
onPressedAxisNeg
public void onPressedAxisNeg(int c, int i) -
onPressedPov
public void onPressedPov(int c) -
getDeadZone
public float getDeadZone(int c, int axis) -
setDeadZone
public void setDeadZone(int c, int axis, float value) -
saveControllerSettings
public void saveControllerSettings(int c) -
getLastActivity
public long getLastActivity(int c) -
setControllerActive
public void setControllerActive(java.lang.String name, boolean active) -
syncActiveControllers
public void syncActiveControllers() -
Reset
public void Reset()
-