L2/R2 Not Mappable

Viewing 15 posts - 16 through 30 (of 34 total)
  • Author
    Posts
  • #6470
    DeathWalk
    Participant

    Ok ere is the gamepad tester results:

    R2 -> activate 0x0e axis RZ to positive, if not pressed is in negative
    L2 -> activate 0x0b axis Z to positive, if not pressed is in negative

    Right stick up -> 0x0d axis RY goes to negative
    Right stick down -> 0x0d axis RY goes to positive
    Right stick left -> 0x0c axis RX goes to negative
    Right stick right -> 0x0c axis RX goes to positive

    #6471
    DeathWalk
    Participant

    Alex i see that we ave diferent results, my R2/L2 buttons, are interpreted like axis not like buttons

    #6472
    admin
    Keymaster

    Well, currently there is no way for remapping these axis in magic dosbox, because it was never requested and implementation takes some time. Is there any way how to fix these axis in that app?

    #6473
    admin
    Keymaster

    L2/R2 are unique, some gamepads implements them like axis, some like buttons, this is common. But is very unusuall that l2r2 is switched with right stick. L2r2 can be gas/brake axis for example

    #6474
    Al ex
    Keymaster

    @DeathWalk are you connecting your controller natively? Or is there some kind of driver involved?

    #6475
    admin
    Keymaster

    this axis are handled by mdosbox :

    zaxis = event.getAxisValue(MotionEvent.AXIS_Z);//(-1,1)
    rzaxis = event.getAxisValue(MotionEvent.AXIS_RZ);//(-1,1)
    xaxis = event.getAxisValue(MotionEvent.AXIS_X);//(-1,1)
    yaxis = event.getAxisValue(MotionEvent.AXIS_Y);//(-1,1)
    hatyaxis = event.getAxisValue(MotionEvent.AXIS_HAT_Y);//(-1,1)
    hatxaxis = event.getAxisValue(MotionEvent.AXIS_HAT_X);//(-1,1)
    L2axis = event.getAxisValue(MotionEvent.AXIS_LTRIGGER);//(0,1)
    R2axis = event.getAxisValue(MotionEvent.AXIS_RTRIGGER);//(0,1)
    brakeaxis = event.getAxisValue(MotionEvent.AXIS_BRAKE);//(0,1)
    gasaxis = event.getAxisValue(MotionEvent.AXIS_GAS);//(0,1)

    zaxis, rzaxis = right stick
    xaxis, yaxis = left stick
    hatyaxis, hatxaxis = 8 way standard gamepad, hat
    L2axis, R2axis, brakeaxis, gasaxis = are converted to buttons

    #6476
    DeathWalk
    Participant

    Native using bluetooth. I saw that in android Pie will fix this:
    https://www.theverge.com/circuitbreaker/2018/8/24/17778036/microsoft-xbox-one-controller-android-pie-support

    But i would like to know if it is any way to remap this in magic dosbox, maybe editing config file or something

    #6477
    admin
    Keymaster

    unfortunately as I wrote above, no. But I can’t believe that there is none application which can redirect these axis. Please look at this, maybe “sixaxis controller” or similar app. If you will not succeed then I can look what I can do. In my case, if I can detect exactly your gamepad by name or something like this then I can switch axis manually in sources, but better is remap it in driver app if possible. Let me know

    #6478
    Al ex
    Keymaster
    #6479
    DeathWalk
    Participant

    Is strange that nobody use the xbox one controller XD Is the most confortable gamepad and natively use BT.
    I have been looking for a fix but all needs a rooted android to edit some files.
    In my case I can wait to the android pie update to test if it is fixed this issue.
    If nobody have this issue is too much work edit magic dosbox just to help me 🙂

    When I have the pie update I will try again and share the config, meanwhile I will use my PS4s controller ˆˆ.

    #6480
    DeathWalk
    Participant

    Thank you Al ex i go to try.

    #6481
    DeathWalk
    Participant

    Unfortunatly that apps don´t fix the problem, the first one is just to remap the physic buttons of te movile, not the gamepadˋs buttons.
    The second if you read the description, the remap of the external controller required rooted android.

    #6482
    Al ex
    Keymaster

    Dang. Well, root is sort of essential if you want to tweak your phone. ?

    I mean, you could always buy that GameSir controller, but it’s ~40$, so it’s not a quick&easy solution. Let’s hope Android 9 will fix it for free. ?

    #6483
    DeathWalk
    Participant

    I will wait the update using the PS4 controller, I hope this one works fine with android. Tomorrow i go back to hhome and I will test.

    Thank you for the help ˆˆ.

    #6484
    DeathWalk
    Participant

    A fix for rooted androids:

    You have to downloads the key layer out from:
    https://issuetracker.google.com/issues/37115804

    And with a file explorer with root access paste here:
    /system/usr/keylayout

Viewing 15 posts - 16 through 30 (of 34 total)
  • You must be logged in to reply to this topic.