rileytestut / Delta

Delta is an all-in-one classic video game emulator for non-jailbroken iOS devices.
4.53k stars 334 forks source link

Controller remapping / extra options #153

Open Kickflipkid687 opened 2 years ago

Kickflipkid687 commented 2 years ago

It would be awesome if there was a way to remap the joysticks on a ps4/Xbox controller when connected to the iPhone. But more specifically I mean when playing GBA.

I can remap other buttons. Or change joysticks for N64, but not GBA. Eclipse browser version I think let me use joystick for gba. So would be excellent if can work here as well.

I also mention this / mention gba, since when I tested with a certain game, left and right work , On the left stick, but up and down doesn’t work. Or something like that. So it seems it’s partially functional / in some way, but also bugged out or not fully implemented.

Also bonus, if Is any way to also let us use and remap the PlayStation home button or touch pad buttton?

Thanks for all the great work!

Kickflipkid687 commented 2 years ago

Well I found out someone matbe fixed this. But just needs to get merged?

“I opened a PR to fix this, but it hasn't been merged yet: https://github.com/rileytestut/DeltaCore/pull/35/files

Essentially some physical controllers' analog sticks are extremely sensitive, so they are always reporting both x/y values when you only want one or the other. So the PR introduces a small deadzone when the analog stick is close to the x/y axis, thereby making the sticks less sensitive.

Still hoping it will get merged in one day!”

Kickflipkid687 commented 2 years ago

One more question. Seems like iPhone has rumble when hitting virtual buttons / touch buttons. Is it possible to also trigger ps4 / etc controller rumbles on button presses , even if the game never had rumble?

oomek commented 2 years ago

I tried xbox controller with Delta today. Unfortunately it's impossible to use the analog stick due to lack of any dead zone control. It's important to have it configurable in settings. Not everyone enjoys playing games using a dpad.

lonkelle commented 2 years ago

Vote for this, think we want deadzones to be completely user configurable. I've made two cards in regards to this: • https://trello.com/c/LyziHqmD/313-setting-per-console-customizable-dead-zone-direction-of-external-controller-analog-stickshttps://trello.com/c/4sEsDr1W/338-enhancement-per-game-setting-to-map-analog-stick-to-only-one-direction-at-a-time