Lines Matching refs:userid
75 GetXInputName(const Uint8 userid, BYTE SubType) in GetXInputName() argument
80 SDL_snprintf(name, sizeof(name), "X360 Controller #%u", 1 + userid); in GetXInputName()
84 SDL_snprintf(name, sizeof(name), "XInput Controller #%u", 1 + userid); in GetXInputName()
87 SDL_snprintf(name, sizeof(name), "XInput Wheel #%u", 1 + userid); in GetXInputName()
90 SDL_snprintf(name, sizeof(name), "XInput ArcadeStick #%u", 1 + userid); in GetXInputName()
93 SDL_snprintf(name, sizeof(name), "XInput FlightStick #%u", 1 + userid); in GetXInputName()
96 SDL_snprintf(name, sizeof(name), "XInput DancePad #%u", 1 + userid); in GetXInputName()
101 SDL_snprintf(name, sizeof(name), "XInput Guitar #%u", 1 + userid); in GetXInputName()
104 SDL_snprintf(name, sizeof(name), "XInput DrumKit #%u", 1 + userid); in GetXInputName()
107 SDL_snprintf(name, sizeof(name), "XInput ArcadePad #%u", 1 + userid); in GetXInputName()
110 SDL_snprintf(name, sizeof(name), "XInput Device #%u", 1 + userid); in GetXInputName()
121 GuessXInputDevice(Uint8 userid, Uint16 *pVID, Uint16 *pPID, Uint16 *pVersion) in GuessXInputDevice() argument
143 if (s_arrXInputDevicePath[userid]) { in GuessXInputDevice()
154 if (SDL_strcmp(devName, s_arrXInputDevicePath[userid]) == 0) { in GuessXInputDevice()
201 if (s_arrXInputDevicePath[userid]) { in GuessXInputDevice()
202 SDL_free(s_arrXInputDevicePath[userid]); in GuessXInputDevice()
204 s_arrXInputDevicePath[userid] = SDL_strdup(devName); in GuessXInputDevice()
220 AddXInputDevice(Uint8 userid, BYTE SubType, JoyStick_DeviceData **pContext) in AddXInputDevice() argument
235 …if (pNewJoystick->bXInputDevice && (pNewJoystick->XInputUserId == userid) && (pNewJoystick->SubTyp… in AddXInputDevice()
261 GuessXInputDevice(userid, &vendor, &product, &version); in AddXInputDevice()
277 pNewJoystick->XInputUserId = userid; in AddXInputDevice()
278 …pNewJoystick->joystickname = SDL_CreateJoystickName(vendor, product, NULL, GetXInputName(userid, S… in AddXInputDevice()
309 DelXInputDevice(Uint8 userid) in DelXInputDevice() argument
311 if (s_arrXInputDevicePath[userid]) { in DelXInputDevice()
312 SDL_free(s_arrXInputDevicePath[userid]); in DelXInputDevice()
313 s_arrXInputDevicePath[userid] = NULL; in DelXInputDevice()
328 const Uint8 userid = (Uint8)iuserid; in SDL_XINPUT_JoystickDetect() local
330 if (XINPUTGETCAPABILITIES(userid, XINPUT_FLAG_GAMEPAD, &capabilities) == ERROR_SUCCESS) { in SDL_XINPUT_JoystickDetect()
343 AddXInputDevice(userid, capabilities.SubType, pContext); in SDL_XINPUT_JoystickDetect()
345 DelXInputDevice(userid); in SDL_XINPUT_JoystickDetect()
371 joystick->hwdata->userid = userId; in SDL_XINPUT_JoystickOpen()
493 if (XINPUTSETSTATE(joystick->hwdata->userid, &XVibration) != ERROR_SUCCESS) { in SDL_XINPUT_JoystickRumble()
509 result = XINPUTGETSTATE(joystick->hwdata->userid, &XInputState); in SDL_XINPUT_JoystickUpdate()
516 …result = XINPUTGETBATTERYINFORMATION(joystick->hwdata->userid, BATTERY_DEVTYPE_GAMEPAD, &XBatteryI… in SDL_XINPUT_JoystickUpdate()