PabloMK7 / citra

A Nintendo 3DS Emulator
GNU General Public License v2.0
3.38k stars 601 forks source link

Dpad not working #172

Open TealDrop opened 2 months ago

TealDrop commented 2 months ago

Is there an existing issue for this?

Affected Build(s)

r4f174f1 Android

Description of Issue

Dpad input requires analogue/axis inputs, so it's practically impossible to bind controllers that use digital inputs for their Dpads (Like the Switch Pro Controller)

Expected Behavior

Separate 'Dpad up' 'Dpad down' 'dpad left' 'dpad right' inputs

Reproduction Steps

Open app, go to settings, gamepad, D-pad, try to bind the up/down and left/right axes to a controller with digital inputs

Log File

not needed

System Configuration

CPU: Snapdragon 8 gen 2 GPU/Driver: Adreno 7 RAM: 8gb OS: Android 14

PabloMK7 commented 2 months ago

You seem to be mixing things up, dpad is digital and cpad is analog. Therefore, controllers that use digital inputs for dpad can bind to dpad.

TealDrop commented 2 months ago

Screenshot_20240709_020342_Citra

TealDrop commented 2 months ago

D-pad clearly states 'up/down axis' and 'left/right axis in picture above

hosjou commented 2 months ago

I can't map my dpad as axis, can i manually input them as button in config file?

I used my old x3 gamepad with usb to my android phone, it detected as Switch Pro Controller, everything is okay except for dpad. It can be mapped as axis while in xbox/dinput mode wirelessly.