diff options
author | Eugene Sandulenko | 2006-11-18 15:16:44 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-11-18 15:16:44 +0000 |
commit | 53c4684bbeb9bde65d80709f94d9c036b4415aef (patch) | |
tree | dabff40ad0f55105d2fd31b4658ee2a1413ec769 /engines/cine/main_loop.cpp | |
parent | e28a1ca46ddef13b896ea0097c0f04059da8b88b (diff) | |
download | scummvm-rg350-53c4684bbeb9bde65d80709f94d9c036b4415aef.tar.gz scummvm-rg350-53c4684bbeb9bde65d80709f94d9c036b4415aef.tar.bz2 scummvm-rg350-53c4684bbeb9bde65d80709f94d9c036b4415aef.zip |
Implement naming save games in cinE. See also FR #1579780: "FW: naming save
games"
svn-id: r24731
Diffstat (limited to 'engines/cine/main_loop.cpp')
-rw-r--r-- | engines/cine/main_loop.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/cine/main_loop.cpp b/engines/cine/main_loop.cpp index c8bc8f530d..5b5a927be6 100644 --- a/engines/cine/main_loop.cpp +++ b/engines/cine/main_loop.cpp @@ -39,6 +39,8 @@ mouseStatusStruct mouseData; uint16 mouseRight = 0; uint16 mouseLeft = 0; +char lastKeyStroke = 0; + uint16 mouseUpdateStatus; uint16 dummyU16; @@ -110,6 +112,7 @@ void manageEvents(int count) { } break; default: + lastKeyStroke = event.kbd.ascii; break; } break; @@ -155,6 +158,14 @@ void getMouseData(uint16 param, uint16 *pButton, uint16 *pX, uint16 *pY) { } } +int getKeyData() { + int k = lastKeyStroke; + + lastKeyStroke = -1; + + return k; +} + void mainLoop(int bootScriptIdx) { uint16 var_6; uint16 quitFlag; |