Sam Lantinga

Results 1865 comments of Sam Lantinga

It's set in this code in SDL_hidapi_ps4.c: ```c if (packet->ucBatteryLevel & 0x10) { SDL_PrivateJoystickBatteryLevel(joystick, SDL_JOYSTICK_POWER_WIRED); } else { /* Battery level ranges from 0 to 10 */ int level =...

It's assumed that if you're creating the window yourself, you're also handling events for that window. What is your use case?

I'm not sure why you're seeing this. Have you set the mouse speed slower in Windows mouse properties?

Oh, that's why. In mouse relative mode you get the raw mouse deltas. The default cursor speed is right in the middle between slow and fast.

Actually, I'm going to reopen this to investigate whether we want to add a hint to scale relative mode motion the same as the OS does for normal mouse motion.

> One thing to note is that if it is made to scale with the user's OS sensitivity setting, this should still hopefully be a toggle/hint. > > We've run...

I believe this will break Xbox controllers on Steam Link, where we use linux/hid.c, but xpad is largely unused and we rely on libusb for access to those devices. I'm...

> For Link, it should be possible to make the list user-modifiable, not sure how that might be done though. For systems where exclusive access to the device isn't an...

It's almost like we want 3 passes: 1. Devices where libusb is preferred (e.g. GameCube adapter) 2. Devices where platform support is preferred (e.g. almost everything else) 3. Devices which...