Rogue Class Linux Download Login

Artifact Content

Artifact c16ef642c681b1fd0d3d0f193926abbf5dc32ac1:


--- into-the-dungeon-0.9.2/src/MainMenu.cpp.orig	2015-10-10 15:31:48.228653242 -0700
+++ into-the-dungeon-0.9.2/src/MainMenu.cpp	2015-10-10 16:06:20.907700276 -0700
@@ -29,6 +29,12 @@
 #include "IAction.h"
 #include "StateMachine.h"
 
+#ifdef RCL
+extern "C" {
+#include <libvjk.h>
+} /* extern "C" */
+#endif
+
 /*
  * This is an action for New Game button
  * Author: Teon Banek
@@ -361,9 +367,19 @@
 void MainMenu::Execute(CApp* app)
 {
   SDL_Event Event;
+#ifdef RCL
+  int consumed;
+#endif
   
   while(SDL_PollEvent(&Event))
   {
+#ifdef RCL
+    consumed = vjoyConsumeEvent(NULL, &Event);
+    if (consumed) {
+      continue;
+    }
+#endif
+
     Menu::OnEvent(&Event);
   }
 
@@ -390,6 +406,9 @@
   
   Menu::displayVersion(app->getDisplay());
   
+#ifdef RCL
+  vkbdBlitGraphics(NULL);
+#endif
   SDL_Flip(app->getDisplay());
 }