From 279a35cb46a32bf10a4faf8fc3ef84b5c0b53493 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 14 Sep 2003 00:40:48 +0000 Subject: [PATCH] OS X: change screenshot key to be cmd-F12. All: fix overwriting screenshots. --- stepmania/src/StepMania.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/stepmania/src/StepMania.cpp b/stepmania/src/StepMania.cpp index a406c3a5bc..a81a7d94a1 100644 --- a/stepmania/src/StepMania.cpp +++ b/stepmania/src/StepMania.cpp @@ -747,14 +747,22 @@ bool HandleGlobalInputs( DeviceInput DeviceI, InputEventType type, GameInput Gam } #endif +#ifndef DARWIN /* XXX: Er, this doesn't work; Windows traps this key and takes a screenshot * into the clipboard. I don't want to disable that, though; it's useful. */ if( DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_PAUSE) && ( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RALT)) || INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_LALT))) ) +#else + if( DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_F12) && + ( INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_RMETA)) || + INPUTFILTER->IsBeingPressed( DeviceInput(DEVICE_KEYBOARD, SDLK_LMETA))) ) +#endif { // Save Screenshot. CString sPath; + + FlushDirCache(); for( int i=0; i<10000; i++ ) { sPath = ssprintf("screen%04d.bmp",i);