acaudwell / Gource

software version control visualization
https://gource.io
GNU General Public License v3.0
11.55k stars 723 forks source link

set camera speed #184

Open BenMakesGames opened 6 years ago

BenMakesGames commented 6 years ago

I thought I might be able to do a PR for this, but it's been waaaaayyyy too long since I did C++, apparently >_>

anyway, I noticed the camera has a setSpeed method. I'd love a CLI argument to set that speed, including allowing a negative value, so that I can invert the x/y controls (I keep wanting to click-and-drag the document, like you would a PDF, or in a graphics-editing program; also, I'd like the speed a little higher).

from glancing at the code, it seems like this would be an easy add... but I didn't dive too deeply into it before getting overwhelmed by, like, "oh, right, separate .h and .cpp files! I forgot. oh god: double-colons everywhere! I forgot about, too! and what: you can use strings as array indicies now?? oh, wait, that must be some STL class that I forgot about, or something, just overloading the square bracket operator... (do they even still use STL?? uh...)" :P