Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vibration support to Gamepad and Joystick APIs #869

Open
jgranick opened this issue Jan 4, 2017 · 3 comments · May be fixed by #1739
Open

Add vibration support to Gamepad and Joystick APIs #869

jgranick opened this issue Jan 4, 2017 · 3 comments · May be fixed by #1739

Comments

@jgranick
Copy link
Member

jgranick commented Jan 4, 2017

From @alexandervrs on November 29, 2016 15:53

There should be a function to provide gamepad vibration capability to the platforms that is supported.

It should use any gamepad device based on its ID you provide, both left and right motors with normalized values from 0.0 (no vibration) to 1.0 (full vibration)

Windows & Xbox could be done via XInput (and DInput if you wish to also support legacy gamepads)
WiiU, Playstation 3/4 controllers also have vibration capabilities.

Gamepad vibration adds so much feedback to a game that it'd be a shame to overlook it.

Copied from original issue: openfl/openfl#1360

@jgranick
Copy link
Member Author

jgranick commented Jan 4, 2017

From @MSGhero on November 29, 2016 17:6

I think AIR can too, idr if it's through an ANE or if it's native functionality.

@jgranick
Copy link
Member Author

jgranick commented Jan 4, 2017

From @alexandervrs on December 1, 2016 9:12

Yeah, I think it's an ANE that works on Windows, Android & iOS judging from here (http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html)

As a note, I am not sure about the device vibration that ANE maps the vibration to iOS/Android though.
I'd categorize that in another API function since it affects the actual device and not a gamepad device (plus you could plug in USB gamepads on Android/iOS, which would complicate that more since the function would vibrate the device instead of the gamepad, unless you could redirect that somehow).

@jgranick
Copy link
Member Author

jgranick commented Jan 4, 2017

SDL supports it, we would just need a Lime API for it

https://wiki.libsdl.org/CategoryForceFeedback

@jgranick jgranick changed the title Provide Gamepad Vibration capability (Windows, Xbox, Playstation, WiiU) Add vibration support to Gamepad and Jostick APIs Jan 10, 2017
@jgranick jgranick changed the title Add vibration support to Gamepad and Jostick APIs Add vibration support to Gamepad and Joystick APIs Jan 11, 2017
@cuckydev cuckydev linked a pull request Jan 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging a pull request may close this issue.

1 participant