OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:joyId
(Results
1 - 6
of
6
) sorted by null
/external/jmonkeyengine/engine/src/core/com/jme3/input/controls/
JoyButtonTrigger.java
39
private final int
joyId
, buttonId;
44
* @param
joyId
47
public JoyButtonTrigger(int
joyId
, int axisId) {
48
this.
joyId
=
joyId
;
52
public static int joyButtonHash(int
joyId
, int joyButton){
54
return (2048 *
joyId
) | 1536 | (joyButton & 0xff);
62
return
joyId
;
66
return "JoyButton[
joyId
="+
joyId
+", axisId="+buttonId+"]"
[
all
...]
JoyAxisTrigger.java
39
private final int
joyId
, axisId;
46
public JoyAxisTrigger(int
joyId
, int axisId, boolean negative) {
47
this.
joyId
=
joyId
;
52
public static int joyAxisHash(int
joyId
, int joyAxis, boolean negative){
54
return (2048 *
joyId
) | (negative ? 1280 : 1024) | (joyAxis & 0xff);
62
return
joyId
;
70
return "JoyAxis[
joyId
="+
joyId
+", axisId="+axisId+", neg="+negative+"]";
74
return joyAxisHash(
joyId
, axisId, negative)
[
all
...]
/external/jmonkeyengine/engine/src/core/com/jme3/input/
JoyInput.java
51
* Causes the joystick at <code>
joyId
</code> index to rumble with
54
* @param
joyId
The joystick index
57
public void setJoyRumble(int
joyId
, float amount);
Joystick.java
15
private int
joyId
;
25
int
joyId
, String name, int buttonCount, int axisCount,
29
this.
joyId
=
joyId
;
44
joyInput.setJoyRumble(
joyId
, amount);
60
inputManager.addMapping(mappingName, new JoyButtonTrigger(
joyId
, buttonId));
73
inputManager.addMapping(positiveMapping, new JoyAxisTrigger(
joyId
, axisId, false));
74
inputManager.addMapping(negativeMapping, new JoyAxisTrigger(
joyId
, axisId, true));
132
return "Joystick[name=" + name + ", id=" +
joyId
+ ", buttons=" + buttonCount
InputManager.java
303
int
joyId
= evt.getJoyIndex();
307
int hash1 = JoyAxisTrigger.joyAxisHash(
joyId
, axis, true);
308
int hash2 = JoyAxisTrigger.joyAxisHash(
joyId
, axis, false);
324
int hash = JoyAxisTrigger.joyAxisHash(
joyId
, axis, true);
325
int otherHash = JoyAxisTrigger.joyAxisHash(
joyId
, axis, false);
330
int hash = JoyAxisTrigger.joyAxisHash(
joyId
, axis, false);
331
int otherHash = JoyAxisTrigger.joyAxisHash(
joyId
, axis, true);
[
all
...]
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/input/lwjgl/
JInputJoyInput.java
55
public void setJoyRumble(int
joyId
, float amount){
56
Controller c = indicesToController.get(
joyId
);
132
int
joyId
= controllerToIndices.get(c);
160
JoyAxisEvent evt1 = new JoyAxisEvent(
joyId
, JoyInput.AXIS_POV_X, x);
161
JoyAxisEvent evt2 = new JoyAxisEvent(
joyId
, JoyInput.AXIS_POV_Y, y);
167
JoyAxisEvent evt = new JoyAxisEvent(
joyId
, axisIdsToIndices[
joyId
].get(axis), value);
171
JoyButtonEvent evt = new JoyButtonEvent(
joyId
, buttonIdsToIndices[
joyId
].get(button), e.getValue() == 1f);
Completed in 175 milliseconds