浏览代码

Make sure we wait after sending the rumble packet when initializing the PowerA Xbox One Mini Wired Controller

Sam Lantinga 2 年之前
父节点
当前提交
e7a56323ab
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/joystick/hidapi/SDL_hidapi_xboxone.c

+ 5 - 0
src/joystick/hidapi/SDL_hidapi_xboxone.c

@@ -317,6 +317,11 @@ SendControllerInit(SDL_HIDAPI_Device *device, SDL_DriverXboxOne_Context *ctx)
         if (packet->response[0]) {
         if (packet->response[0]) {
             return SDL_TRUE;
             return SDL_TRUE;
         }
         }
+
+        /* Wait to process the rumble packet */
+        if (packet->data == xboxone_powera_rumble_init) {
+            SDL_Delay(10);
+        }
     }
     }
 
 
     /* All done with the negotiation, prepare for input! */
     /* All done with the negotiation, prepare for input! */