Skip to content
This repository has been archived by the owner on Jan 5, 2022. It is now read-only.

Vibrate function? #14

Closed
KeirSweeney opened this issue Aug 10, 2015 · 4 comments
Closed

Vibrate function? #14

KeirSweeney opened this issue Aug 10, 2015 · 4 comments
Labels

Comments

@KeirSweeney
Copy link

Can't find anything on getting the vibrate to work with these controllers? Am i missing something? It's driving me nuts

@JISyed
Copy link
Owner

JISyed commented Aug 12, 2015

Since Unity's standard Input class doesn't support controller vibrations, XboxCtrlrInput doesn't support it, since all the features here should support Windows, Mac, and Linux.

However, if you're on Windows, you should know that XboxCtrlrInput is using Xinput.Net internally and XInput.Net supports controller vibrations as seen in the GamePad class (scroll all the way to the bottom and find the method SetVibration()).

Feel free to modify your fork to include this feature, but since vibrations would only work on Windows, I wouldn't make this official functionality of XboxCtrlrInput unless someone finds out how to make controllers vibrate on Mac and Linux.

@JISyed JISyed closed this as completed Oct 31, 2015
@Jip-Hop
Copy link

Jip-Hop commented May 10, 2016

Hi,

I've installed the driver from this project: https://github.com/360Controller/360Controller
It supports rumbling. At least it works from the newly added 360Controller Preference Pane.
Perhaps now that OS X can make the controller vibrate, it would be nice to have access to this form Unity too?

@JISyed
Copy link
Owner

JISyed commented Dec 21, 2016

In order for vibration to work on macOS, there would have to be a C# library that can access the vibration functionality in the 360Controller driver. There is not any that I know of, so I cannot support vibration (yet). Sorry.

@JISyed
Copy link
Owner

JISyed commented Aug 8, 2017

A wiki page was made for this issue: Concerning Vibration Output

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants