diff options
author | Gregory Montoir | 2003-10-28 20:58:46 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-10-28 20:58:46 +0000 |
commit | efa51b6013eb3d95cb86e430e4158cf5821cd3a9 (patch) | |
tree | ec78358421251a0daf87886a60f70243ad09924a /queen/input.h | |
parent | 8eea63362ed29d888515512f965a298e5cb77bd6 (diff) | |
download | scummvm-rg350-efa51b6013eb3d95cb86e430e4158cf5821cd3a9.tar.gz scummvm-rg350-efa51b6013eb3d95cb86e430e4158cf5821cd3a9.tar.bz2 scummvm-rg350-efa51b6013eb3d95cb86e430e4158cf5821cd3a9.zip |
add accessors for mouse current pos / button + keyVerb
svn-id: r10999
Diffstat (limited to 'queen/input.h')
-rw-r--r-- | queen/input.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/queen/input.h b/queen/input.h index 75bdc98920..fd97df91b3 100644 --- a/queen/input.h +++ b/queen/input.h @@ -35,10 +35,15 @@ class Input { //! Adjust here to change delays! enum { - DELAY_SHORT = 10, + DELAY_SHORT = 10, DELAY_NORMAL = 100 }; + enum { + MOUSE_LBUTTON = 1, + MOUSE_RBUTTON = 2 + }; + Input(OSystem *system); //! calls the other delay() with a value adjusted depending on _fastMode @@ -80,16 +85,25 @@ class Input { void canQuit(bool cq) { _canQuit = cq; } + bool cutawayRunning() const { return _cutawayRunning; } void cutawayRunning(bool running) { _cutawayRunning = running; } - bool cutawayQuit() { return _cutawayQuit; } + bool cutawayQuit() const { return _cutawayQuit; } void cutawayQuitReset() { _cutawayQuit = false; } - bool talkQuit() { return _talkQuit; } + bool talkQuit() const { return _talkQuit; } void talkQuitReset() { _talkQuit = false; } void fastMode(bool fm) { _fastMode = fm; } + Verb keyVerb() const { return _keyVerb; } + + int mousePosX() const { return _mouse_x; } + int mousePosY() const { return _mouse_y; } + + int mouseButton() const { return _mouseButton; } + void clearMouseButton() { _mouseButton = 0; } + private: enum KeyCode { @@ -132,7 +146,10 @@ class Input { int _inKey; //! Set by delay(); - int _sdl_mouse_x, _sdl_mouse_y; + int _mouse_x, _mouse_y; + + //! Set by delay(); + int _mouseButton; }; |