diff options
-rw-r--r-- | engines/sci/engine/kevent.cpp | 8 | ||||
-rw-r--r-- | engines/sci/event.h | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/engines/sci/engine/kevent.cpp b/engines/sci/engine/kevent.cpp index b240c947bf..85665cde7f 100644 --- a/engines/sci/engine/kevent.cpp +++ b/engines/sci/engine/kevent.cpp @@ -206,6 +206,14 @@ reg_t kGetEvent(EngineState *s, int argc, reg_t *argv) { } break; +#ifdef ENABLE_SCI32 + case SCI_EVENT_HOT_RECTANGLE: + writeSelectorValue(segMan, obj, SELECTOR(type), curEvent.type); + writeSelectorValue(segMan, obj, SELECTOR(message), curEvent.hotRectangleIndex); + s->r_acc = TRUE_REG; + break; +#endif + default: // Return a null event writeSelectorValue(segMan, obj, SELECTOR(type), SCI_EVENT_NONE); diff --git a/engines/sci/event.h b/engines/sci/event.h index 3b18db2f92..b06d2ae429 100644 --- a/engines/sci/event.h +++ b/engines/sci/event.h @@ -63,7 +63,7 @@ struct SciEvent { #define SCI_EVENT_DIRECTION (1 << 6) #define SCI_EVENT_SAID (1 << 7) #ifdef ENABLE_SCI32 -#define SCI_EVENT_HOT_RECTANGLE (1 << 8) +#define SCI_EVENT_HOT_RECTANGLE (1 << 10) #endif /*Fake values for other events*/ #define SCI_EVENT_QUIT (1 << 11) |