The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Question about SDL Haptics and Windows
Dw77


Joined: 15 Oct 2014
Posts: 3
It has been a long time since I last used SDL, so imagine my surprise when I decide to see what's new and I Find SDL 2.0 complete with support for haptic feedback. Now I've had a USB HID Controller for a while now. However I came away disappointed when I tried to implement rumble with the controller after I used the Dpad Buttons and analog sticks. So onto my questions: Are the haptic capabilities unimplemented or only partially implemented? If it is only implemented through Xinput is there a timetable for DirectX Support?

If none of this is actually relevant then it sounds like it is something with my controller so I include some information on it below:
OS: Windows 7 home
Computer HP Pavillion g6
Controller: Power A Airflo controller for PS3
it has 2 different devie functions listed under properties:
HID-compliant game Controller
USB Input Device

Some Further Information under the controller function:

HID-Compliant game controller Properties:
Hardware IDs:
HID\VID_20D6&PID_571D&REV_0100
HID\VID_20D6&PID_571D
HID_DEVICE_SYSTEM_GAME
HID_DEVICE_UP:0001_U:0005
HID_DEVICE
Device Class GUID: {745a17a0-74d3-11d0-b6fe-00a0c90f57da}
Physical device object name: \Device\0000010e
Capabilities:
000000E0
CM_DEVCAP_SILENTINSTALL
CM_DEVCAP_RAWDEVICEOK
CM_DEVCAP_SURPRISEREMOVALOK
Power Data:
Current power state:
D0
Power capabilities:
0000005D
PDCAP_D0_SUPPORTED
PDCAP_D2_SUPPORTED
PDCAP_D3_SUPPORTED
PDCAP_WAKE_FROM_D0_SUPPORTED
PDCAP_WAKE_FROM_D2_SUPPORTED
Power state mappings:
S0 -> D0
S1 -> D2
S2 -> D2
S3 -> D2
S4 -> D2
S5 -> D3
Device instance path: HID\VID_20D6&PID_571D\7&29394B3F&1&0000
DevNode status:
0180200A
DN_DRIVER_LOADED
DN_STARTED
DN_DISABLEABLE
DN_NT_ENUMERATOR
DN_NT_DRIVER
Parent: USB\VID_20D6&PID_571D\6&16c176e9&0&1
Driver assembly version: 6.1.7601.18199

Thank you for any help
jsalina


Joined: 04 Jun 2014
Posts: 17
I'm having a similar problem with haptics using SDL v2.03. I have win 7 64-bit ps3 dualshock3 motionjoy virtual controller driver using DX input. SDL finds 1 haptic count and says the joystick is a haptic, yet hapticOpenFromJoystick returns "haptic error Setting cooperative level to exclusive".

There was a related haptic fix in v2.03, but I think that only fixed a specific issue with XInput. I believe v2.04 fixes many related haptic issues, but they haven't officially released it yet. The src\windows\haptic\ directory structure changed significantly from v2.03 to v2.04. I'm not going to bother building the libraries from the v2.04 source, so I'll just wait until they release it and try again.

Sorry no answers, but hopefully this helps.
Dw77


Joined: 15 Oct 2014
Posts: 3
Thanks for the reply jsalina, I'll look forward to the release of 2.04 until then I'll have to put the controller haptics aside and focus on other things.