Hello All,
I'm trying to add haptic effects to my Android game.
al_install_haptic() always returns zero, and so I can't go any further :-(
I have already (successfully) called al_create_display(), and I have added <uses-permission android:name="android.permission.VIBRATE" /> to my manifest.
Have I missed anything?
Anyone have any ideas what might be causing this?
Follow up questions:
Should I expect the display, or the touch input to be haptic capable? (i.e. should I be using al_get_haptic_from_display() or al_get_haptic_from_touch_input()? )
I know I can check with al_is_display_haptic() & al_is_touch_input_haptic(), but all the touch input functions need a parameter of type ALLEGRO_TOUCH_INPUT, and I can't see where I get that from..... Any clues?
Cheers
Ian.
I wrote most of the haptics a few years ago, but it is still somewhat half baked and untested on Android and IOS. This is due to a lack of actual users of the API , so your feedback is appreciated.
On mobile platforms, the display should be haptic capable, other inputs are likely not so.
It is possible that you have hit a bug. Could you post some example code that exhibits the problem, then I will look into it.
Thanks beoran.
Here's a stripped-down section of the start of my code which seems to show the problem.
and here's the AndroidManifest.xml
It seems i forgot that I didn't implement haptics for Android and iOS at all. It only works on Linux and Windows for now. How silly of me!
Seeing my current situation I can't say when I will get to implemening the Android haptics driver for Allegro5. It's not that hard, though, so you could try it yourself if you need this urgently. I will try to assist you as I can.
Edit: on second thought, it doesn't seem right to leave you up shit creek without a paddle. I will write the driver myself asap. I would appreciate your help to test it though.
Ah, well that would explain it :-)
Thanks very much for the offer. I appreciate it, but don't let it get in the way of anything more important in your life :-)
Yes, I'm happy to test it. Let me know when you have something to test. I'll PM you my email address, in case that's useful.
Cheers,
Ian.