Lines Matching refs:pNewJoystick
226 JoyStick_DeviceData *pNewJoystick = *pContext; in AddXInputDevice() local
234 while (pNewJoystick) { in AddXInputDevice()
235 …if (pNewJoystick->bXInputDevice && (pNewJoystick->XInputUserId == userid) && (pNewJoystick->SubTyp… in AddXInputDevice()
237 if (pNewJoystick == *pContext) { in AddXInputDevice()
238 *pContext = pNewJoystick->pNext; in AddXInputDevice()
240 pPrevJoystick->pNext = pNewJoystick->pNext; in AddXInputDevice()
243 pNewJoystick->pNext = SYS_Joystick; in AddXInputDevice()
244 SYS_Joystick = pNewJoystick; in AddXInputDevice()
248 pPrevJoystick = pNewJoystick; in AddXInputDevice()
249 pNewJoystick = pNewJoystick->pNext; in AddXInputDevice()
252 pNewJoystick = (JoyStick_DeviceData *)SDL_calloc(1, sizeof(JoyStick_DeviceData)); in AddXInputDevice()
253 if (!pNewJoystick) { in AddXInputDevice()
257 pNewJoystick->bXInputDevice = SDL_TRUE; in AddXInputDevice()
259 Uint16 *guid16 = (Uint16 *)pNewJoystick->guid.data; in AddXInputDevice()
273 pNewJoystick->guid.data[14] = 'x'; in AddXInputDevice()
274 pNewJoystick->guid.data[15] = SubType; in AddXInputDevice()
276 pNewJoystick->SubType = SubType; in AddXInputDevice()
277 pNewJoystick->XInputUserId = userid; in AddXInputDevice()
278 …pNewJoystick->joystickname = SDL_CreateJoystickName(vendor, product, NULL, GetXInputName(userid, S… in AddXInputDevice()
279 if (!pNewJoystick->joystickname) { in AddXInputDevice()
280 SDL_free(pNewJoystick); in AddXInputDevice()
284 if (SDL_ShouldIgnoreJoystick(pNewJoystick->joystickname, pNewJoystick->guid)) { in AddXInputDevice()
285 SDL_free(pNewJoystick); in AddXInputDevice()
290 if (HIDAPI_IsDevicePresent(vendor, product, version, pNewJoystick->joystickname)) { in AddXInputDevice()
292 SDL_free(pNewJoystick); in AddXInputDevice()
300 SDL_free(pNewJoystick); in AddXInputDevice()
305 WINDOWS_AddJoystickDevice(pNewJoystick); in AddXInputDevice()