OSDN Git Service

[UI][Keyboard] WIP.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Sat, 14 Feb 2015 14:35:57 +0000 (23:35 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Sat, 14 Feb 2015 14:35:57 +0000 (23:35 +0900)
source/src/qt/common/emu_input.cpp
source/src/qt/gui/qt_input.cpp

index 3e90a3e..04213b0 100644 (file)
@@ -851,7 +851,7 @@ void JoyThreadClass::doWork(void)
   while(SDL_PollEvent(&event) == 1) {
     EventSDL(&event);
   }
-  timer.setInterval(10);
+  timer.setInterval(5);
   return;
 }
 
@@ -869,9 +869,9 @@ void Ui_MainWindow::LaunchJoyThread(void)
     connect(&(hRunJoy->timer), SIGNAL(timeout()), hRunJoy, SLOT(doWork()));
     connect(this, SIGNAL(quit_joy_thread()), hRunJoy, SLOT(doExit()));
    
-    hRunJoy->timer.setInterval(10);
+    hRunJoy->timer.setInterval(5);
     hRunJoy->timer.setSingleShot(false);
-    hRunJoy->timer.start(10);
+    hRunJoy->timer.start(5);
    
 }
 void Ui_MainWindow::StopJoyThread(void) {
index 5ded378..ebaa690 100644 (file)
@@ -246,8 +246,8 @@ struct NativeScanCode convTable_QTScan106[] = {
      {'O', 32},
      {'P', 33},
      {0xc0, 34}, // @
-     {VK_RETURN, 36}, // [
-     {0xdb, 35}, // Enter (Full key)
+     {VK_RETURN, 36}, // Enter (Full key)
+     {0xdb, 35}, // [
      // Line 3
      {0xf0, 66}, // CAPS Lock
      {'A', 38},