Lines Matching refs:joysticks
42 SDL_JoystickID joysticks[MAX_CONTROLLERS]; member
146 ctx->joysticks[0] = -1; in HIDAPI_DriverGameCube_InitDevice()
147 ctx->joysticks[1] = -1; in HIDAPI_DriverGameCube_InitDevice()
148 ctx->joysticks[2] = -1; in HIDAPI_DriverGameCube_InitDevice()
149 ctx->joysticks[3] = -1; in HIDAPI_DriverGameCube_InitDevice()
176 if (ctx->joysticks[i] == -1) { in HIDAPI_DriverGameCube_InitDevice()
178 HIDAPI_JoystickConnected(device, &ctx->joysticks[i], SDL_FALSE); in HIDAPI_DriverGameCube_InitDevice()
181 if (ctx->joysticks[i] != -1) { in HIDAPI_DriverGameCube_InitDevice()
182 HIDAPI_JoystickDisconnected(device, ctx->joysticks[i], SDL_FALSE); in HIDAPI_DriverGameCube_InitDevice()
183 ctx->joysticks[i] = -1; in HIDAPI_DriverGameCube_InitDevice()
214 if (instance_id == ctx->joysticks[i]) { in HIDAPI_DriverGameCube_GetDevicePlayerIndex()
252 if (ctx->joysticks[i] == -1) { in HIDAPI_DriverGameCube_UpdateDevice()
254 HIDAPI_JoystickConnected(device, &ctx->joysticks[i], SDL_FALSE); in HIDAPI_DriverGameCube_UpdateDevice()
256 joystick = SDL_JoystickFromInstanceID(ctx->joysticks[i]); in HIDAPI_DriverGameCube_UpdateDevice()
263 if (ctx->joysticks[i] != -1) { in HIDAPI_DriverGameCube_UpdateDevice()
264 HIDAPI_JoystickDisconnected(device, ctx->joysticks[i], SDL_FALSE); in HIDAPI_DriverGameCube_UpdateDevice()
265 ctx->joysticks[i] = -1; in HIDAPI_DriverGameCube_UpdateDevice()
329 if (joystick->instance_id == ctx->joysticks[i]) { in HIDAPI_DriverGameCube_OpenJoystick()
345 if (joystick->instance_id == ctx->joysticks[i]) { in HIDAPI_DriverGameCube_RumbleJoystick()