Welcome, Guest.
Username: Password: Remember me

TOPIC: Mouse movement as uniform

Mouse movement as uniform 4 months 3 weeks ago #1

Hello. I could not find a way to get how much the mouse moved during the last frame. A partial solution to this is to save the previous "mousepoint" uniform and subtract it to the current value, but values are clipped when the cursor reaches the border of the game window (even if the cursor is not visible in game). So I think a uniform that gives the mouse motion regardless of the cursor would be nice.
Last Edit: 4 months 3 weeks ago by onulets.
The administrator has disabled public write access.

Mouse movement as uniform 3 months 1 week ago #2

  • crosire
  • crosire's Avatar
  • Offline
  • Posts: 3001
  • Thank you received: 1753
Next version will have a "mousedelta" uniform source with this data.
Cheers, crosire =)
The administrator has disabled public write access.