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 int1, java.lang.String string)
void
assignJoypad(int int1, int int2)
float
getAimingAxisX(int int1)
float
getAimingAxisY(int int1)
float
getDeadZone(int int1, int int2)
JoypadManager.Joypad
getFromControllerID(int int1)
JoypadManager.Joypad
getFromPlayer(int int1)
long
getLastActivity(int int1)
float
getMovementAxisX(int int1)
float
getMovementAxisY(int int1)
boolean
isAPressed(int int1)
boolean
isBPressed(int int1)
boolean
isDownPressed(int int1)
boolean
isL3Pressed(int int1)
boolean
isLBPressed(int int1)
boolean
isLeftPressed(int int1)
boolean
isLTPressed(int int1)
boolean
isR3Pressed(int int1)
boolean
isRBPressed(int int1)
boolean
isRightPressed(int int1)
boolean
isRTPressed(int int1)
boolean
isUpPressed(int int1)
boolean
isXPressed(int int1)
boolean
isYPressed(int int1)
void
onPressed(int int1, int int2)
void
onPressedAxis(int int1, int int2)
void
onPressedAxisNeg(int int1, int int2)
void
onPressedPov(int int1)
void
reloadControllerFiles()
void
Reset()
void
saveControllerSettings(int int1)
void
setControllerActive(java.lang.String string, boolean boolean1)
void
setDeadZone(int int1, int int2, float float1)
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 int1, int int2) -
getFromPlayer
-
getFromControllerID
-
onPressed
public void onPressed(int int1, int int2) -
isDownPressed
public boolean isDownPressed(int int1) -
isUpPressed
public boolean isUpPressed(int int1) -
isRightPressed
public boolean isRightPressed(int int1) -
isLeftPressed
public boolean isLeftPressed(int int1) -
isLBPressed
public boolean isLBPressed(int int1) -
isRBPressed
public boolean isRBPressed(int int1) -
isL3Pressed
public boolean isL3Pressed(int int1) -
isR3Pressed
public boolean isR3Pressed(int int1) -
isRTPressed
public boolean isRTPressed(int int1) -
isLTPressed
public boolean isLTPressed(int int1) -
isAPressed
public boolean isAPressed(int int1) -
isBPressed
public boolean isBPressed(int int1) -
isXPressed
public boolean isXPressed(int int1) -
isYPressed
public boolean isYPressed(int int1) -
getMovementAxisX
public float getMovementAxisX(int int1) -
getMovementAxisY
public float getMovementAxisY(int int1) -
getAimingAxisX
public float getAimingAxisX(int int1) -
getAimingAxisY
public float getAimingAxisY(int int1) -
onPressedAxis
public void onPressedAxis(int int1, int int2) -
onPressedAxisNeg
public void onPressedAxisNeg(int int1, int int2) -
onPressedPov
public void onPressedPov(int int1) -
getDeadZone
public float getDeadZone(int int1, int int2) -
setDeadZone
public void setDeadZone(int int1, int int2, float float1) -
saveControllerSettings
public void saveControllerSettings(int int1) -
getLastActivity
public long getLastActivity(int int1) -
setControllerActive
public void setControllerActive(java.lang.String string, boolean boolean1) -
syncActiveControllers
public void syncActiveControllers() -
Reset
public void Reset()
-