- Home /
How to make a controller vibrate using android
Hi,
I'm controlling my game via a PS3 controller
Everything is working fine however I'm not sure how to request vibration from the controller.
Does anyone know how to do this?
Thanks.
Answer by roojerry · Aug 19, 2013 at 02:24 PM
google gave me this answer. It seems there is no built-in function for handling vibration on controllers. You must access the controller driver directly to get that functionality.
Yeah I found the same thing :( Was hoping there was something else
Thanks though :)
Are you trying to get PS3 controller input on android? If so, that seems to add another layer of complexity to your project. Seeing as there is nothing built-in to handle vibration of ps3 controllers on standalone builds, id say it be even harder to access such a feature on android considering you will most likely need a rooted phone and a third party app just to get the controller to work with an android device.
PS3 Controllers input is handled on android, the only thing I can't get to work is the vibration, I can send a vibration to the screen but not to the controller.
Complexity isn't an issue, Time isn't an issue. I just want to find out if it's possible
I'm out of ideas. Good luck. Hopefully someone comes by with a more definitive answer
Answer by rpmlins · Sep 17, 2013 at 07:05 PM
Here is a library in C++ that this guy did. He made it to work with Wii and WiiU. Take a look at the simple source code to see how he have done things. libsicksaxis. In my option he used some sort of listenner to capture the packages that the crontroller and the PS3 Console exchanges, then did the Trick with C++.
He may also have got the information exchange using the package sniffer with a PC changing irformation with the PS3 controler, which would be 'a little less complicated'. I know for sure that there is a software when istalled together with the winmm.dll library, a few PC games when played with the PS3, makes the controller vibrates.
A quick Google search and one of the games is borderlands.
Not a simple task to do anyway.
Wii and Wii U Controllers has a built-in Functionality for it to Vibration even through a $$anonymous$$obile Devices or PC without any extra needs, Xbox and PlayStation does not.
Answer by LoungeKatt · Mar 04, 2014 at 09:19 AM
You may want to look into https://play.google.com/store/apps/details?id=com.dancingpixelstudios.sixaxiscontroller
The application does allow you to output "haptic feedback" to the PS3 controller. I am not sure how willing the developer will be to share his process, but it is a good place to start. Controllers are something Android has only begun to support in the last few Android versions, so it may alter what platforms your app can target if that functionality is vital to your game.
Your answer
Follow this Question
Related Questions
how to make the Playstation 3 controller vibrate? 1 Answer
How to implement controller vibration / rumble? 4 Answers
Dual joystick Position always resets on playing 1 Answer
Gamepad controller not working after build for Android 0 Answers
Using your Android as a controller for your Unity PC Game 1 Answer