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

[web] add support for pen pressure

This commit is contained in:
Airyzz
2025-06-05 18:03:43 +09:30
parent 978b38797b
commit 5f8f0ac305
4 changed files with 10 additions and 9 deletions

View File

@@ -515,9 +515,9 @@ const GodotInput = {
const rel_pos_x = evt.movementX * rw;
const rel_pos_y = evt.movementY * rh;
const modifiers = GodotInput.getModifiers(evt);
func(pos[0], pos[1], rel_pos_x, rel_pos_y, modifiers);
func(pos[0], pos[1], rel_pos_x, rel_pos_y, modifiers, evt.pressure);
}
GodotEventListeners.add(window, 'mousemove', move_cb, false);
GodotEventListeners.add(window, 'pointermove', move_cb, false);
},
godot_js_input_mouse_wheel_cb__proxy: 'sync',