[web] add support for pen pressure
This commit is contained in:
parent
978b38797b
commit
5f8f0ac305
4 changed files with 10 additions and 9 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue