Camera2D and panning

Does anyone have any good examples on how to do camera panning with MGE? Like right-click and drag to move the camera?

But why MG.E? (I don’t fully understand MG.E yet though)


Search query:

I use MG.E because they do nifty stuff like ecs, viewports, spriteanimations and a whole bunch of good other usefull stuff.

I meant I don’t know how or why or if it affects basic operations/coding, any luck with that link?


Just for reference:

This is the Camera that I made. Its completely independent from everything except Monogame itself. You can configure the update logic to move how ever you want. It has Zoom, WASD movement and has a VisibleArea for use in culling. Feel free to use it however you see fit.