Fixed screen shot handling on windows.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12534 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
b0382b5532
commit
3485ae2d8c
@ -159,8 +159,11 @@ void InputManager::handleStaticAction(int key, int value)
|
|||||||
kart->flyDown();
|
kart->flyDown();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case KEY_SNAPSHOT:
|
||||||
case KEY_PRINT:
|
case KEY_PRINT:
|
||||||
if (value != 0)
|
// on windows we don't get a press event, only release. So
|
||||||
|
// save on release only (to avoid saving twice on other platforms)
|
||||||
|
if (value ==0 )
|
||||||
irr_driver->requestScreenshot();
|
irr_driver->requestScreenshot();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user