diff options
author | Filippos Karapetis | 2015-12-18 00:41:24 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:08 +0100 |
commit | b6bed0aed72bb45e88dd363a9a34a26ad9f03f6d (patch) | |
tree | 9398e2e586caaced26057aeb4fc221c6f50eb1e5 /engines/lab/eventman.h | |
parent | fdf09a63851cf51dc4c07a65e5fbc82c2d56512c (diff) | |
download | scummvm-rg350-b6bed0aed72bb45e88dd363a9a34a26ad9f03f6d.tar.gz scummvm-rg350-b6bed0aed72bb45e88dd363a9a34a26ad9f03f6d.tar.bz2 scummvm-rg350-b6bed0aed72bb45e88dd363a9a34a26ad9f03f6d.zip |
LAB: Simplify mouse button handling
Diffstat (limited to 'engines/lab/eventman.h')
-rw-r--r-- | engines/lab/eventman.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/engines/lab/eventman.h b/engines/lab/eventman.h index d2c5782453..20b4ddc29d 100644 --- a/engines/lab/eventman.h +++ b/engines/lab/eventman.h @@ -38,15 +38,13 @@ namespace Lab { class LabEngine; class Image; -// Defines for the Class variable in IntuiMessage -#define MOUSEBUTTONS 0x00000008 -#define BUTTONUP 0x00000040 -#define RAWKEY 0x00000400 -#define DELTAMOVE 0x00100000 - -// Defines for the Qualifier variable in IntuiMessage -#define IEQUALIFIER_RIGHTBUTTON 0x2000 -#define IEQUALIFIER_LEFTBUTTON 0x4000 +enum MessageClasses { + kMessageLeftClick, + kMessageRightClick, + kMessageButtonUp, + kMessageRawKey, + kMessageDeltaMove +}; #define VKEY_UPARROW 273 #define VKEY_DNARROW 274 @@ -55,7 +53,7 @@ class Image; struct IntuiMessage { uint32 _msgClass; - uint16 _code, _qualifier, _mouseX, _mouseY, _buttonId; + uint16 _code, _qualifier, _mouseX, _mouseY; uint32 _seconds, _micros; }; |