MacOSX Controller question

Currently got controller support working fine for MacOSX, great job!

But have a question, would really like to vibrate the controller of the player that is taking damage in-game, 

and found that controllers have a 

 device.canVibrate

but not having any luck with it. How should I get a controller to vibrate?

Thanks again!

Hi @Robato,

Did you try the “:vibrate()” function?

https://docs.coronalabs.com/daily/api/type/InputDevice/vibrate.html

Best regards,

Brent

Thanks for the tip @Brent!

But that seems to be Android specific, we’re working with MacOSX (Desktop). Is there some sort of permission required for use with MacOSX like there is with Android?

Hi @Robato,

Unfortunately there is quite a big problem with force feedback/vibration on OS X. For not it works only with Xbox controller.

controller:vibrate() should work for those devices.

Update: you don’t need Android permissions on OS X to vibrate. Here is example of vibration when player gets hit in our PewPew demo.

Thanks @Vlads!

Seems your right that MacOSX doesn’t have feedback/vibration drivers any more for PS3 controllers :frowning:

Wondering, as I don’t have a Windows machine, do controllers work on Windows?

Thanks again

Game Controllers are supported only on Android and OS X for now. Windows support is not implemented yet.

Hi @Robato,

Did you try the “:vibrate()” function?

https://docs.coronalabs.com/daily/api/type/InputDevice/vibrate.html

Best regards,

Brent

Thanks for the tip @Brent!

But that seems to be Android specific, we’re working with MacOSX (Desktop). Is there some sort of permission required for use with MacOSX like there is with Android?

Hi @Robato,

Unfortunately there is quite a big problem with force feedback/vibration on OS X. For not it works only with Xbox controller.

controller:vibrate() should work for those devices.

Update: you don’t need Android permissions on OS X to vibrate. Here is example of vibration when player gets hit in our PewPew demo.

Thanks @Vlads!

Seems your right that MacOSX doesn’t have feedback/vibration drivers any more for PS3 controllers :frowning:

Wondering, as I don’t have a Windows machine, do controllers work on Windows?

Thanks again

Game Controllers are supported only on Android and OS X for now. Windows support is not implemented yet.