Package zombie.input
Class JoypadManager
java.lang.Object
zombie.input.JoypadManager
public final 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
ActiveControllerGUIDs
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, java.lang.String string2)
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
isAButtonReleasePress(int int1)
boolean
isAButtonStartPress(int int1)
boolean
isAPressed(int int1)
boolean
isBButtonReleasePress(int int1)
boolean
isBButtonStartPress(int int1)
boolean
isBPressed(int int1)
boolean
isButtonReleasePress(int int1, int int2)
boolean
isButtonStartPress(int int1, int int2)
boolean
isDownPressed(int int1)
boolean
isJoypadConnected(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
isXButtonReleasePress(int int1)
boolean
isXButtonStartPress(int int1)
boolean
isXPressed(int int1)
boolean
isYButtonReleasePress(int int1)
boolean
isYButtonStartPress(int int1)
boolean
isYPressed(int int1)
void
onControllerConnected(Controller controller)
void
onControllerDisconnected(Controller controller)
void
onPressed(int int1, int int2)
void
onPressedAxis(int int1, int int2)
void
onPressedAxisNeg(int int1, int int2)
void
onPressedPov(int int1)
void
onPressedTrigger(int int1, int int2)
void
reloadControllerFiles()
void
renderUI()
void
Reset()
void
revertToKeyboardAndMouse()
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 final java.util.ArrayList JoypadList -
ActiveControllerGUIDs
public final java.util.HashSet ActiveControllerGUIDs
-
-
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) -
isButtonStartPress
public boolean isButtonStartPress(int int1, int int2) -
isButtonReleasePress
public boolean isButtonReleasePress(int int1, int int2) -
isAButtonStartPress
public boolean isAButtonStartPress(int int1) -
isBButtonStartPress
public boolean isBButtonStartPress(int int1) -
isXButtonStartPress
public boolean isXButtonStartPress(int int1) -
isYButtonStartPress
public boolean isYButtonStartPress(int int1) -
isAButtonReleasePress
public boolean isAButtonReleasePress(int int1) -
isBButtonReleasePress
public boolean isBButtonReleasePress(int int1) -
isXButtonReleasePress
public boolean isXButtonReleasePress(int int1) -
isYButtonReleasePress
public boolean isYButtonReleasePress(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) -
onPressedTrigger
public void onPressedTrigger(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() -
isJoypadConnected
public boolean isJoypadConnected(int int1) -
onControllerConnected
-
onControllerDisconnected
-
revertToKeyboardAndMouse
public void revertToKeyboardAndMouse() -
renderUI
public void renderUI() -
Reset
public void Reset()
-