Add iOS Apple Pencil pressure

This commit is contained in:
Vaughan Ling
2021-04-03 10:30:57 -07:00
parent b38a36923a
commit f60b90d92e
4 changed files with 53 additions and 4 deletions
+1
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);
}