added F6 to save screenshot. (currently this conflicts with the editor's use of F6, but it won't after the editor UI changes)

This commit is contained in:
Chris Danford
2003-01-31 22:34:04 +00:00
parent 7c470cf9c8
commit ebce24b57e
5 changed files with 56 additions and 2 deletions
+16
View File
@@ -433,6 +433,22 @@ static void HandleInputEvents(float fDeltaTime)
}
ApplyGraphicOptions();
}
else if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_F6))
{
if(type != IET_FIRST_PRESS) continue;
// pressed F6. Save Screenshot.
int i=0;
CString sPath;
for( i=0; i<1000; i++ )
{
sPath = ssprintf("screen%04d.bmp",i);
if( !DoesFileExist(sPath) )
break;
}
DISPLAY->SaveScreenshot( sPath );
SCREENMAN->SystemMessage( "Saved screenshot: " + sPath );
}
if(DeviceI == DeviceInput(DEVICE_KEYBOARD, SDLK_RETURN))
{