libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.28k stars 1.83k forks source link

[ANDROID] gamepad vibration #10338

Open izdiharuddin opened 4 years ago

izdiharuddin commented 4 years ago

Description

The Gamepad wont vibrate even when the vibration support is enable.

For example the vibration wont working on the flycast core (this is core i tested).

I already consult with core creator flyinghead for flycast core and make a test.

To see whether the controller problem or not, I run the flycast standalone app, the controller vibrate on the standalone app but not in the core with retroarch.

I'm using Logitech F710 and Nvidia Shield Controller (2017)

Expected behavior

The gamepad vibrate with the vibration support enable.

Actual behavior

The gamepad is not vibrate with vibration support enable.

Steps to reproduce the bug

  1. Open retroarch app
  2. Settings > Input > Enable device vibration (for supported cores) -> set it to 'on'
  3. Run flycast with dc games
  4. On quick menu > option > pupuru vibration > set it to 'on'
  5. on the game try to enable vibration support.

Version/Commit

You can find this information under Information/System Information

Environment information

xTMODx commented 4 years ago

i would also like to see this finally working, i think @bparker06 added the initial support but we couldnt get it working, he said in theory it should already working. I had tested it with DualShock 4 connected with usb.

izdiharuddin commented 4 years ago

i would also like to see this finally working, i think @bparker06 added the initial support but we couldnt get it working, he said in theory it should already working. I had tested it with DualShock 4 connected with usb.

is it working with dualshock 4?

xTMODx commented 4 years ago

No it is not working with RA but standalone emulators are working fine

izdiharuddin commented 4 years ago

No it is not working with RA but standalone emulators are working fine

let see if they have time for this implementation... also need to add intensity of the vibration... i notice it quite low vibration with stand alone emulator.

soredake commented 1 year ago

https://issuetracker.google.com/issues/128314303 https://issuetracker.google.com/issues/161057609 https://developer.android.com/reference/android/os/VibratorManager

xTMODx commented 10 months ago

Does that information help to add support for rumble on android?

xTMODx commented 2 months ago

It's sad that after all the time no one cares about rumble/vibration support on android controllers, that's the reason I use standalone N64 / PSX emulators, so I can play some games with more fun