mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-01-10 04:55:44 +00:00
Removed checks not needed for the Wii U Pro Controller
This commit is contained in:
parent
4018f35ef2
commit
8dfe0e4beb
|
@ -38,7 +38,6 @@
|
||||||
|
|
||||||
/* Define this if you want to log all packets from the controller */
|
/* Define this if you want to log all packets from the controller */
|
||||||
/*#define DEBUG_WII_PROTOCOL*/
|
/*#define DEBUG_WII_PROTOCOL*/
|
||||||
//#define DEBUG_WII_PROTOCOL
|
|
||||||
|
|
||||||
#define INPUT_WAIT_TIMEOUT_MS (3 * 1000)
|
#define INPUT_WAIT_TIMEOUT_MS (3 * 1000)
|
||||||
#define MOTION_PLUS_UPDATE_TIME_MS (8 * 1000)
|
#define MOTION_PLUS_UPDATE_TIME_MS (8 * 1000)
|
||||||
|
@ -1530,6 +1529,9 @@ HIDAPI_DriverWii_UpdateDevice(SDL_HIDAPI_Device *device)
|
||||||
size = -1;
|
size = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* These checks aren't needed on the Wii U Pro Controller */
|
||||||
|
if (ctx->m_eExtensionControllerType != k_eWiiExtensionControllerType_WiiUPro) {
|
||||||
|
|
||||||
/* Check to see if the Motion Plus extension status has changed */
|
/* Check to see if the Motion Plus extension status has changed */
|
||||||
if (ctx->m_unNextMotionPlusCheck &&
|
if (ctx->m_unNextMotionPlusCheck &&
|
||||||
SDL_TICKS_PASSED(now, ctx->m_unNextMotionPlusCheck)) {
|
SDL_TICKS_PASSED(now, ctx->m_unNextMotionPlusCheck)) {
|
||||||
|
@ -1552,6 +1554,7 @@ HIDAPI_DriverWii_UpdateDevice(SDL_HIDAPI_Device *device)
|
||||||
|
|
||||||
ctx->m_unLastStatus = now;
|
ctx->m_unLastStatus = now;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (size < 0 || ctx->m_bDisconnected) {
|
if (size < 0 || ctx->m_bDisconnected) {
|
||||||
/* Read error, device is disconnected */
|
/* Read error, device is disconnected */
|
||||||
|
|
Loading…
Reference in a new issue