Giter VIP home page Giter VIP logo

Comments (7)

AmatCoder avatar AmatCoder commented on June 2, 2024

Analog inputs are not supported yet so they act like digital buttons.

from mednaffe.

Nucleoprotein avatar Nucleoprotein commented on June 2, 2024

I think you misunderstand me. I explain using example:
I want to map button 'A' to PSX button 'X'. When I press 'A' on gamepad, then GUI sets 'Axis 1 Down' or similar instead, so I cannot map digital buttons because axes are always detected as pressed (because they not center ideally).
Also I think GUI is saving improper device string, Mednafen saved setting like:

;psx, Virtual Port 1, DualShock: Analog(mode toggle)
psx.input.port1.dualshock.analog joystick 0000000000010000 0000000a

;psx, Virtual Port 1, DualShock: ○ (right)
psx.input.port1.dualshock.circle joystick 0000000000010000 0000000d

;psx, Virtual Port 1, DualShock: x (lower)
psx.input.port1.dualshock.cross joystick 0000000000010000 0000000c

And I think 1 is dwUserIndex.

from mednaffe.

AmatCoder avatar AmatCoder commented on June 2, 2024

I misunderstand you, sorry. Now I see what you mean.
This happens also with DirectInput devices if analog controls are not center perfectly.
I will add deadzones to avoid this. Thanks for reporting.


Regarding to device string, mednafen does not use dwUserIndex to identify gamepads but it use an internal ID. Basically it is like:
id = (XINPUT_DEVTYPE_GAMEPAD << 24) | (XINPUT_DEVSUBTYPE_GAMEPAD << 16);
So '0000000000010000' seems an correct id from a Xinput device.
(Probably I am misunderstand you again... ;) )

from mednaffe.

AmatCoder avatar AmatCoder commented on June 2, 2024

Deadzones for axis added in ab1bbc6 commit.

from mednaffe.

Nucleoprotein avatar Nucleoprotein commented on June 2, 2024

LGTM 👍

from mednaffe.

AmatCoder avatar AmatCoder commented on June 2, 2024

Great! Thanks for testing.

from mednaffe.

mistertoze avatar mistertoze commented on June 2, 2024

Hello, I'm also having issues with the deadzones in my controller.

Is there any way I can increase their value?
Or would it be possible for you to add deadzone sliders to the Input options?

Thank you.

from mednaffe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.