Class XInputController

java.lang.Object
net.java.games.input.AbstractController
zombie.core.input.XInputController
All Implemented Interfaces:
net.java.games.input.Controller

public class XInputController
extends net.java.games.input.AbstractController
  • Field Details

    • XINPUT_GAMEPAD_DPAD_UP

      public static final int XINPUT_GAMEPAD_DPAD_UP
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_DPAD_DOWN

      public static final int XINPUT_GAMEPAD_DPAD_DOWN
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_DPAD_LEFT

      public static final int XINPUT_GAMEPAD_DPAD_LEFT
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_DPAD_RIGHT

      public static final int XINPUT_GAMEPAD_DPAD_RIGHT
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_START

      public static final int XINPUT_GAMEPAD_START
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_BACK

      public static final int XINPUT_GAMEPAD_BACK
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_LEFT_THUMB

      public static final int XINPUT_GAMEPAD_LEFT_THUMB
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_RIGHT_THUMB

      public static final int XINPUT_GAMEPAD_RIGHT_THUMB
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_LEFT_SHOULDER

      public static final int XINPUT_GAMEPAD_LEFT_SHOULDER
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_RIGHT_SHOULDER

      public static final int XINPUT_GAMEPAD_RIGHT_SHOULDER
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_A

      public static final int XINPUT_GAMEPAD_A
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_B

      public static final int XINPUT_GAMEPAD_B
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_X

      public static final int XINPUT_GAMEPAD_X
      See Also:
      Constant Field Values
    • XINPUT_GAMEPAD_Y

      public static final int XINPUT_GAMEPAD_Y
      See Also:
      Constant Field Values
    • DPAD_ALL

      public static final int DPAD_ALL
      See Also:
      Constant Field Values
    • ComponentButtonBits

      public static final int[] ComponentButtonBits
  • Constructor Details

    • XInputController

      protected XInputController​(int int1, java.lang.String string, net.java.games.input.Component[] componentArray, net.java.games.input.Controller[] controllerArray, net.java.games.input.Rumbler[] rumblerArray)
  • Method Details

    • create

      public static XInputController create​(int int1, java.lang.String string)
    • pollDevice

      protected void pollDevice() throws java.io.IOException
      Overrides:
      pollDevice in class net.java.games.input.AbstractController
      Throws:
      java.io.IOException
    • getNextDeviceEvent

      protected boolean getNextDeviceEvent​(net.java.games.input.Event event) throws java.io.IOException
      Specified by:
      getNextDeviceEvent in class net.java.games.input.AbstractController
      Throws:
      java.io.IOException
    • isConnected

      public boolean isConnected()