aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/event.h
diff options
context:
space:
mode:
authorMax Horn2010-06-17 23:11:34 +0000
committerMax Horn2010-06-17 23:11:34 +0000
commitfabba55e6df2a3ae1b1bba5f3e145cae5bba0dc4 (patch)
tree37200da20c8b4612c97470519be49403755d0b99 /engines/sci/event.h
parenta2bcf9ac31d025d09fabcd2d636eeb34d3c75df0 (diff)
downloadscummvm-rg350-fabba55e6df2a3ae1b1bba5f3e145cae5bba0dc4.tar.gz
scummvm-rg350-fabba55e6df2a3ae1b1bba5f3e145cae5bba0dc4.tar.bz2
scummvm-rg350-fabba55e6df2a3ae1b1bba5f3e145cae5bba0dc4.zip
SCI: cleanup
svn-id: r49961
Diffstat (limited to 'engines/sci/event.h')
-rw-r--r--engines/sci/event.h36
1 files changed, 16 insertions, 20 deletions
diff --git a/engines/sci/event.h b/engines/sci/event.h
index bdfbf4bebe..dc7aebc98e 100644
--- a/engines/sci/event.h
+++ b/engines/sci/event.h
@@ -23,31 +23,29 @@
*
*/
-#ifndef SCI_ENGINE_EVENT_H
-#define SCI_ENGINE_EVENT_H
+#ifndef SCI_EVENT_H
+#define SCI_EVENT_H
#include "common/list.h"
namespace Sci {
-#define SCI_INPUT_DEFAULT_CLOCKTIME 100000
-#define SCI_INPUT_DEFAULT_REDRAWTIME 30000
-
-
struct SciEvent {
short type;
short data;
short modifiers;
- short character; /* for keyboard events: 'data' after applying
- ** the effects of 'modifiers', e.g. if
- ** type == SCI_EVT_KEYBOARD
- ** data == 'a'
- ** buckybits == SCI_EVM_LSHIFT
- ** then
- ** character == 'A'
- ** For 'Alt', characters are interpreted by their
- ** PC keyboard scancodes.
- */
+ /**
+ * For keyboard events: 'data' after applying
+ * the effects of 'modifiers', e.g. if
+ * type == SCI_EVT_KEYBOARD
+ * data == 'a'
+ * buckybits == SCI_EVM_LSHIFT
+ * then
+ * character == 'A'
+ * For 'Alt', characters are interpreted by their
+ * PC keyboard scancodes.
+ */
+ short character;
};
/*Values for type*/
@@ -113,7 +111,7 @@ struct SciEvent {
class EventManager {
public:
- EventManager(ResourceManager *resMgr);
+ EventManager(bool fontIsExtended);
~EventManager();
SciEvent getSciEvent(unsigned int mask);
@@ -121,9 +119,7 @@ public:
private:
SciEvent getScummVMEvent();
- ResourceManager *_resMan;
-
- bool _fontIsExtended;
+ const bool _fontIsExtended;
Common::List<SciEvent> _events;
};