How could I move/dragg the viewport by holding down middle mouse button in my game, just like in construct 2 viewport?
So far I have managed to do this:
Substract Cursor.X/2 from CurrentX
Substract Cursor.Y/2 from CurrentY
Set X to Cameraman.CurrentX
Set Y to Cameraman.CurrentY
This works well, but returns view back to the starting point.