| 1448 | } |
| 1449 | |
| 1450 | void Input::_axis_event(int p_device, JoyAxis p_axis, float p_value) { |
| 1451 | Ref<InputEventJoypadMotion> ievent; |
| 1452 | ievent.instantiate(); |
| 1453 | ievent->set_device(p_device); |
| 1454 | ievent->set_axis(p_axis); |
| 1455 | ievent->set_axis_value(p_value); |
| 1456 | |
| 1457 | parse_input_event(ievent); |
| 1458 | } |
| 1459 | |
| 1460 | void Input::_update_action_cache(const StringName &p_action_name, ActionState &r_action_state) { |
| 1461 | // Update the action cache, computed from the per-device and per-event states. |
nothing calls this directly
no test coverage detected