Home
last modified time | relevance | path

Searched refs:joyId (Results 1 – 6 of 6) sorted by relevance

/external/jmonkeyengine/engine/src/core/com/jme3/input/controls/
DJoyButtonTrigger.java39 private final int joyId, buttonId; field in JoyButtonTrigger
47 public JoyButtonTrigger(int joyId, int axisId) { in JoyButtonTrigger() argument
48 this.joyId = joyId; in JoyButtonTrigger()
52 public static int joyButtonHash(int joyId, int joyButton){ in joyButtonHash() argument
54 return (2048 * joyId) | 1536 | (joyButton & 0xff); in joyButtonHash()
62 return joyId; in getJoyId()
66 return "JoyButton[joyId="+joyId+", axisId="+buttonId+"]"; in getName()
70 return joyButtonHash(joyId, buttonId); in triggerHashCode()
DJoyAxisTrigger.java39 private final int joyId, axisId; field in JoyAxisTrigger
46 public JoyAxisTrigger(int joyId, int axisId, boolean negative) { in JoyAxisTrigger() argument
47 this.joyId = joyId; in JoyAxisTrigger()
52 public static int joyAxisHash(int joyId, int joyAxis, boolean negative){ in joyAxisHash() argument
54 return (2048 * joyId) | (negative ? 1280 : 1024) | (joyAxis & 0xff); in joyAxisHash()
62 return joyId; in getJoyId()
70 return "JoyAxis[joyId="+joyId+", axisId="+axisId+", neg="+negative+"]"; in getName()
74 return joyAxisHash(joyId, axisId, negative); in triggerHashCode()
/external/jmonkeyengine/engine/src/core/com/jme3/input/
DJoystick.java15 private int joyId; field in Joystick
25 int joyId, String name, int buttonCount, int axisCount, in Joystick() argument
29 this.joyId = joyId; in Joystick()
44 joyInput.setJoyRumble(joyId, amount); in rumble()
60 inputManager.addMapping(mappingName, new JoyButtonTrigger(joyId, buttonId)); in assignButton()
73 inputManager.addMapping(positiveMapping, new JoyAxisTrigger(joyId, axisId, false)); in assignAxis()
74 inputManager.addMapping(negativeMapping, new JoyAxisTrigger(joyId, axisId, true)); in assignAxis()
132 return "Joystick[name=" + name + ", id=" + joyId + ", buttons=" + buttonCount in toString()
DInputManager.java303 int joyId = evt.getJoyIndex(); in onJoyAxisEventQueued() local
307 int hash1 = JoyAxisTrigger.joyAxisHash(joyId, axis, true); in onJoyAxisEventQueued()
308 int hash2 = JoyAxisTrigger.joyAxisHash(joyId, axis, false); in onJoyAxisEventQueued()
324 int hash = JoyAxisTrigger.joyAxisHash(joyId, axis, true); in onJoyAxisEventQueued()
325 int otherHash = JoyAxisTrigger.joyAxisHash(joyId, axis, false); in onJoyAxisEventQueued()
330 int hash = JoyAxisTrigger.joyAxisHash(joyId, axis, false); in onJoyAxisEventQueued()
331 int otherHash = JoyAxisTrigger.joyAxisHash(joyId, axis, true); in onJoyAxisEventQueued()
DJoyInput.java57 public void setJoyRumble(int joyId, float amount); in setJoyRumble() argument
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/input/lwjgl/
DJInputJoyInput.java55 public void setJoyRumble(int joyId, float amount){ in setJoyRumble() argument
56 Controller c = indicesToController.get(joyId); in setJoyRumble()
132 int joyId = controllerToIndices.get(c); in update() local
160 JoyAxisEvent evt1 = new JoyAxisEvent(joyId, JoyInput.AXIS_POV_X, x); in update()
161 JoyAxisEvent evt2 = new JoyAxisEvent(joyId, JoyInput.AXIS_POV_Y, y); in update()
167 … JoyAxisEvent evt = new JoyAxisEvent(joyId, axisIdsToIndices[joyId].get(axis), value); in update()
171 …JoyButtonEvent evt = new JoyButtonEvent(joyId, buttonIdsToIndices[joyId].get(button), e.getValue()… in update()