Permalink
Browse files

Middle mouse button now toggles the camera mode.

  • Loading branch information...
1 parent 7af775c commit 5d94c9525955f1136903093e6af312299570a426 @acaudwell committed Mar 9, 2010
Showing with 18 additions and 4 deletions.
  1. +2 −0 ChangeLog
  2. +5 −3 README
  3. +5 −1 data/gource.1
  4. +6 −0 src/gource.cpp
View
@@ -1,5 +1,7 @@
0.26:
* Improved mouse dragging.
+ * Holding right mouse button and moving the mouse rotates the view.
+ * The middle mouse button now toggles the camera mode.
* Username positions now scale correctly.
* Simulation time no longer incremented while paused, counting towards file time lag.
* M key now toggles mouse visibility.
View
@@ -230,9 +230,11 @@ may use the mouse to inspect the detail of individual files and users.
TAB cycles through selecting the current visible users.
-The camera mode, either tracking activity, or showing the entire code tree, can
-be toggled using the V key. You can drag the mouse on the background to
-manually control the camera.
+The camera mode, either tracking activity or showing the entire code tree, can
+be toggled using the Middle mouse button.
+
+You can drag the left mouse button to manually control the camera. The right
+mouse button rotates the view.
Interactive keyboard commands:
View
@@ -222,7 +222,11 @@ Pressing SPACE at any time will pause/unpause the simulation. While paused you m
TAB cycles through selecting the current visible users.
-The camera mode, either tracking activity, or showing the entire code tree, can be toggled using the V key. You can drag the mouse on the background to manually control the camera.
+The camera mode, either tracking activity or showing the entire code tree, can
+be toggled using the Middle mouse button.
+
+You can drag the left mouse button to manually control the camera. The right
+mouse button rotates the view.
Interactive keyboard commands:
.sp
View
@@ -469,6 +469,12 @@ void Gource::mouseClick(SDL_MouseButtonEvent *e) {
return;
}
+ if(e->button == SDL_BUTTON_MIDDLE) {
+ toggleCameraMode();
+ return;
+ }
+
+
if(e->button == SDL_BUTTON_RIGHT) {
SDL_WM_GrabInput(SDL_GRAB_ON);

0 comments on commit 5d94c95

Please sign in to comment.