diff options
| author | JapaMala | 2011-10-18 00:39:54 +0530 |
|---|---|---|
| committer | JapaMala | 2011-10-18 00:39:54 +0530 |
| commit | ee36fbd147e6f96a7c9b49f15ca1d55355e7c0d0 (patch) | |
| tree | 59a4fa65b6439c04180baabf29d190d5e50cea2b /UserInput.cpp | |
| parent | 71e67bc744792d02f01cc882dc21a3be788996b6 (diff) | |
| download | stonesense-ee36fbd147e6f96a7c9b49f15ca1d55355e7c0d0.tar.gz stonesense-ee36fbd147e6f96a7c9b49f15ca1d55355e7c0d0.tar.bz2 stonesense-ee36fbd147e6f96a7c9b49f15ca1d55355e7c0d0.tar.xz | |
added preliminary functions to save volumetric data. Also fixed the large screenshot feature.
Signed-off-by: JapaMala <japa.mala.illo@gmail.com>
Diffstat (limited to 'UserInput.cpp')
| -rw-r--r-- | UserInput.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/UserInput.cpp b/UserInput.cpp index fd636fd..53305c9 100644 --- a/UserInput.cpp +++ b/UserInput.cpp @@ -274,12 +274,15 @@ void doKeys(int Key) timeToReloadSegment = true;
}
if(Key == ALLEGRO_KEY_F5){
- if (!(al_key_down(&keyboard,ALLEGRO_KEY_LCTRL) || al_key_down(&keyboard,ALLEGRO_KEY_RCTRL)))
+ if (al_key_down(&keyboard,ALLEGRO_KEY_LCTRL) || al_key_down(&keyboard,ALLEGRO_KEY_RCTRL))
+ if (al_key_down(&keyboard,ALLEGRO_KEY_LSHIFT) || al_key_down(&keyboard,ALLEGRO_KEY_RSHIFT))
+ saveMegashot(true);
+ else
+ saveMegashot(false);
+ else if (al_key_down(&keyboard,ALLEGRO_KEY_ALT) || al_key_down(&keyboard,ALLEGRO_KEY_ALTGR))
+ dumpSegment();
+ else
saveScreenshot();
- else{
- saveMegashot();
- }
-
}
if(Key == ALLEGRO_KEY_PAD_PLUS){
config.automatic_reload_time += config.automatic_reload_step;
|
