I seriously doubt it. This is such simple code (assuming you can arbitrarily position the screen) that nobody bothered to make an actual library for it. You detect that the mouse's X/Y position is close to the side (however you want to define "close") and move the screen accordingly. Also, RTS's on touch screens aren't going to work the same way as for a mouse, so you will have to develop entirely different gameplay to make them work.
–
Nicol BolasNov 26 '11 at 1:49

1

Integration of any 'library code' would probably be more complex than the code itself.
–
stepheltonNov 26 '11 at 20:23

Having written the movement code several times now it occurs to me that actually good navigation code with bells and whistles like spinning around when drive off the map and scaling back so you don't fly through high buildings and such is not as small as you'd like, but it is generic enough to be a useful library.
–
WillNov 27 '11 at 7:50

1 Answer
1

I don't think there is a library, but as for how to do it, it depends on whether the game is 3d or 2d. For 3d, you should check if the mouse position is touching one of the edges of the screen and then change the position of the camera, or world matrix if you dont use one. Something like this: