1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Add iOS Apple Pencil pressure

This commit is contained in:
Vaughan Ling
2021-03-30 09:42:28 -07:00
parent b38a36923a
commit f60b90d92e
4 changed files with 53 additions and 4 deletions

View File

@@ -403,6 +403,7 @@ void InputDefault::_parse_input_event_impl(const Ref<InputEvent> &p_event, bool
motion_event->set_relative(sd->get_relative());
motion_event->set_speed(sd->get_speed());
motion_event->set_button_mask(mouse_button_mask);
motion_event->set_pressure(1.f);
_parse_input_event_impl(motion_event, true);
}