Rogue Class Linux Download Login

Artifact Content

Artifact 12d8d2a287c9503756af64ce40ed262a258086ab:


--- ia-16.0/src/Input.cpp.orig	2014-08-27 13:16:24.289321141 -0700
+++ ia-16.0/src/Input.cpp	2014-08-27 13:19:24.624335294 -0700
@@ -33,6 +33,7 @@
 #include "SdlWrapper.h"
 #include "Hide.h"
 #include "Popup.h"
+#include "rcl.h"
 
 using namespace std;
 
@@ -626,6 +627,9 @@
 }
 
 KeyboardReadRetData readKeysUntilFound(Engine& eng, const bool IS_O_RETURN) {
+#ifdef RCL
+  int consumed;
+#endif
   if(event_ == NULL) {
     return KeyboardReadRetData();
   }
@@ -635,6 +639,12 @@
     SdlWrapper::sleep(1);
 
     while(SDL_PollEvent(event_)) {
+#ifdef RCL
+      consumed = vjoyConsumeEvent(NULL, event_);
+      if (consumed) {
+         continue;
+      }
+#endif
       if(event_->type == SDL_QUIT) {
         return KeyboardReadRetData(SDLK_ESCAPE);
       } else if(event_->type == SDL_KEYDOWN) {