# Haptic devices not found in Windows 8

**URL:** <https://discourse.libsdl.org/t/haptic-devices-not-found-in-windows-8/20696>\
**Category:** SDL Development\
**Created:** [May 22, 2014, 1:46am UTC](https://discourse.libsdl.org/t/haptic-devices-not-found-in-windows-8/20696 "2014-05-22T01:46:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guns1ingr](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@Guns1ingr](https://discourse.libsdl.org/u/Guns1ingr)\
**Post date:** [May 22, 2014, 1:46am UTC](https://discourse.libsdl.org/t/haptic-devices-not-found-in-windows-8/20696/1 "2014-05-22T01:46:42Z")

</div>

I have an issue where SDL\_NumHaptics() is returning 0 in Windows 8 or 8.1, when a any standard XInput controller is plugged in. No error message is set.

Everything works fine under Windows 7. NumHaptics returns the correct number, SDL\_HapticOpen() and SDL\_HapticRumbleInit() get the controller vibrating. The issue is the same on a variety of different machines.

My suspicion is something to do with the use of XInput 1.4 in Windows 8. Has anyone dealt with similar issues or have any insight?

---

<div class="post-metadata">

**Author:** ![David\_Ludwig](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/david_ludwig/32/4016_2.png) [@David\_Ludwig](https://discourse.libsdl.org/u/David_Ludwig)\
**Post date:** [May 22, 2014, 7:49pm UTC](https://discourse.libsdl.org/t/haptic-devices-not-found-in-windows-8/20696/2 "2014-05-22T19:49:21Z")

</div>

Are you using SDL’s WinRT backend on Windows 8, i.e. are you creating a separate “Windows Store” .exe, or are you taking one .exe, running it on a bunch of machines (some Win 7, some Win 8.x), and noticing the problem when it runs on Win 8.x?

I ask as I can answer why haptic wouldn’t work when compiled as a WinRT app: haptic isn’t yet supported there (in theory it could be, it just hasn’t been added to SDL/WinRT yet). I’m not sure why it wouldn’t work when an app is compiled for Win32 / Windows Desktop (for Win 7, etc.) though. :-/

Cheers,  
– David L.

---

<div class="post-metadata">

**Author:** ![Guns1ingr](https://discourse.libsdl.org/letter_avatar_proxy/v4/letter/g/c67d28/32.png) [@Guns1ingr](https://discourse.libsdl.org/u/Guns1ingr)\
**Post date:** [May 22, 2014, 10:01pm UTC](https://discourse.libsdl.org/t/haptic-devices-not-found-in-windows-8/20696/3 "2014-05-22T22:01:02Z")

</div>

Yes, unfortunately, it is a single Windows Desktop exe being built and run on the different operating systems (not trying to do a Metro app or anything). Something else I can look into though, thank you for the suggestion!
