Tagged: compatibility, Moga
- This topic has 33 replies, 6 voices, and was last updated 6 years ago by Al ex.
-
AuthorPosts
-
5. December 2018 at 22:15 #6470DeathWalkParticipant
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 negativeRight 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 positive5. December 2018 at 22:17 #6471DeathWalkParticipantAlex i see that we ave diferent results, my R2/L2 buttons, are interpreted like axis not like buttons
5. December 2018 at 22:22 #6472adminKeymasterWell, 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?
5. December 2018 at 22:24 #6473adminKeymasterL2/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
5. December 2018 at 22:29 #6474Al exKeymaster@DeathWalk are you connecting your controller natively? Or is there some kind of driver involved?
5. December 2018 at 22:33 #6475adminKeymasterthis 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 buttons5. December 2018 at 22:36 #6476DeathWalkParticipantNative 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-supportBut i would like to know if it is any way to remap this in magic dosbox, maybe editing config file or something
5. December 2018 at 22:45 #6477adminKeymasterunfortunately 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
5. December 2018 at 23:19 #6478Al exKeymasterMaybe this:
https://play.google.com/store/apps/details?id=com.irishin.buttonsremapperor this:
https://play.google.com/store/apps/details?id=com.locnet.gamekeyboard2
(paid app though)5. December 2018 at 23:24 #6479DeathWalkParticipantIs 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 ˆˆ.
5. December 2018 at 23:25 #6480DeathWalkParticipantThank you Al ex i go to try.
5. December 2018 at 23:32 #6481DeathWalkParticipantUnfortunatly 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.5. December 2018 at 23:49 #6482Al exKeymasterDang. 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. ?
5. December 2018 at 23:58 #6483DeathWalkParticipantI 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 ˆˆ.
6. December 2018 at 0:46 #6484DeathWalkParticipantA fix for rooted androids:
You have to downloads the key layer out from:
https://issuetracker.google.com/issues/37115804And with a file explorer with root access paste here:
/system/usr/keylayout -
AuthorPosts
- You must be logged in to reply to this topic.