Skip to content

Commit

Permalink
Added setting the mouse movement pressure when simulating the viewpoi…
Browse files Browse the repository at this point in the history
…nt pointer movement. (#216)
  • Loading branch information
Malcolmnixon authored Oct 22, 2022
1 parent 504bd6c commit 54b86d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/godot-xr-tools/objects/viewport_2d_in_3d_body.gd
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func _on_pointer_moved(from, to):
event.set_global_position(local_to)
event.set_relative(local_to - local_from) # should this be scaled/warped?
event.set_button_mask(mouse_mask)
event.set_pressure(mouse_mask)

if vp:
vp.input(event)
Expand Down

0 comments on commit 54b86d3

Please sign in to comment.