diff options
author | Simei Yin | 2017-07-20 19:08:53 +0200 |
---|---|---|
committer | Simei Yin | 2017-07-20 19:10:01 +0200 |
commit | 0fb4a1ddd228cdcedb1313aa8df6ac2b9ba97530 (patch) | |
tree | 874c73d908c3a61e63845124125cecdaf71a81b8 /engines/sludge/sludger.h | |
parent | caa51ef49af5f6e92169a2f8095c08325823cb44 (diff) | |
download | scummvm-rg350-0fb4a1ddd228cdcedb1313aa8df6ac2b9ba97530.tar.gz scummvm-rg350-0fb4a1ddd228cdcedb1313aa8df6ac2b9ba97530.tar.bz2 scummvm-rg350-0fb4a1ddd228cdcedb1313aa8df6ac2b9ba97530.zip |
SLUDGE: Objectify input and event handler
Diffstat (limited to 'engines/sludge/sludger.h')
-rw-r--r-- | engines/sludge/sludger.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/engines/sludge/sludger.h b/engines/sludge/sludger.h index fe00cc6300..91efb24ce9 100644 --- a/engines/sludge/sludger.h +++ b/engines/sludge/sludger.h @@ -39,16 +39,6 @@ typedef struct _FILETIME { struct Variable; struct VariableStack; -struct EventHandlers { - int leftMouseFunction; - int leftMouseUpFunction; - int rightMouseFunction; - int rightMouseUpFunction; - int moveMouseFunction; - int focusFunction; - int spaceFunction; -}; - struct LineOfCode { sludgeCommand theCommand; int32 param; @@ -68,20 +58,14 @@ struct LoadedFunction { byte freezerLevel; }; -struct InputType { - bool leftClick, rightClick, justMoved, leftRelease, rightRelease; - int mouseX, mouseY, keyPressed; -}; - bool initSludge(const Common::String &); +bool runSludge(); void displayBase(); void sludgeDisplay(); int startNewFunctionNum(uint, uint, LoadedFunction *, VariableStack*&, bool = true); bool handleInput(); void restartFunction(LoadedFunction *fun); bool loadFunctionCode(LoadedFunction *newFunc); -void loadHandlers(Common::SeekableReadStream *stream); -void saveHandlers(Common::WriteStream *stream); void finishFunction(LoadedFunction *fun); void abortFunction(LoadedFunction *fun); |