Lines Matching refs:joy
218 joystick joy = new joystick(); in onInputDeviceAdded() local
219 joy.device_id = deviceId; in onInputDeviceAdded()
220 joy.name = device.getName(); in onInputDeviceAdded()
221 joy.axes = new ArrayList<InputDevice.MotionRange>(); in onInputDeviceAdded()
222 joy.hats = new ArrayList<InputDevice.MotionRange>(); in onInputDeviceAdded()
229 joy.hats.add(range); in onInputDeviceAdded()
231 joy.axes.add(range); in onInputDeviceAdded()
235 joy_devices.add(joy); in onInputDeviceAdded()
236 GodotLib.joyconnectionchanged(id, true, joy.name); in onInputDeviceAdded()
328 joystick joy = joy_devices.get(id); in onGenericMotionEvent() local
330 for (int i = 0; i < joy.axes.size(); i++) { in onGenericMotionEvent()
331 InputDevice.MotionRange range = joy.axes.get(i); in onGenericMotionEvent()
336 for (int i = 0; i < joy.hats.size(); i += 2) { in onGenericMotionEvent()
337 int hatX = Math.round(event.getAxisValue(joy.hats.get(i).getAxis())); in onGenericMotionEvent()
338 int hatY = Math.round(event.getAxisValue(joy.hats.get(i + 1).getAxis())); in onGenericMotionEvent()