@@ -92,50 +92,6 @@ public void stopRumble() {
9292 joyInput .stopJoyRumble (joyId );
9393 }
9494
95- /**
96- * Assign the mapping name to receive events from the given button index
97- * on the joystick.
98- *
99- * @param mappingName The mapping to receive joystick button events.
100- * @param buttonId The button index.
101- *
102- * @see Joystick#getButtonCount()
103- * @deprecated Use JoystickButton.assignButton() instead.
104- */
105- @ Override
106- @ Deprecated
107- public void assignButton (String mappingName , int buttonId ) {
108- if (buttonId < 0 || buttonId >= getButtonCount ())
109- throw new IllegalArgumentException ();
110-
111- inputManager .addMapping (mappingName , new JoyButtonTrigger (joyId , buttonId ));
112- }
113-
114- /**
115- * Assign the mappings to receive events from the given joystick axis.
116- *
117- * @param positiveMapping The mapping to receive events when the axis is negative
118- * @param negativeMapping The mapping to receive events when the axis is positive
119- * @param axisId The axis index.
120- *
121- * @see Joystick#getAxisCount()
122- * @deprecated Use JoystickAxis.assignAxis() instead.
123- */
124- @ Override
125- @ Deprecated
126- public void assignAxis (String positiveMapping , String negativeMapping , int axisId ) {
127-
128- // For backwards compatibility
129- if (axisId == JoyInput .AXIS_POV_X ) {
130- axisId = getPovXAxis ().getAxisId ();
131- } else if (axisId == JoyInput .AXIS_POV_Y ) {
132- axisId = getPovYAxis ().getAxisId ();
133- }
134-
135- inputManager .addMapping (positiveMapping , new JoyAxisTrigger (joyId , axisId , false ));
136- inputManager .addMapping (negativeMapping , new JoyAxisTrigger (joyId , axisId , true ));
137- }
138-
13995 @ Override
14096 public JoystickAxis getAxis (String logicalId ) {
14197 for (JoystickAxis axis : axes ) {
0 commit comments