Help: how to disable external controller detection in an android game? - Android Q&A, Help & Troubleshooting

Hi guys my android device has integrated physical controls, works great for almost all games specially because of the integrated mapping tool, but some games like Implosion, lego star wars, the amazing spiderman 2 autodetect the gamepad as a different controller, the problem is the games don't recognize most of the buttons, so I can't progress because there is no option to enable the touch screen controls. So my question is does anyone know how to disable the gamepad autodetection in games so I can play them using the onscreen buttons by using the mapping tool? I have root maybe there is a way to alter the games data to disable the external controller detection? Please help

Any ideas guys? based on the times I have seen this question on the internet it appears no one knows how.

No dev knows?

Bump

Bump

Tried using tincore but it did not work.

I am root now any files I can delete? please help.

Any way to disable th system input devices?

It appears the problem arises because the builtin controller of my device is two different devices called "joystick" (the analogs) and "joykey" (the face buttons and dpad), the games only detect the joystick as the first connected device, making the face buttoms unusable. Is there any way I can merge these input devices? Or just removing "joystick"?

Solved!!!
https://forum.xda-developers.com/general/help/how-to-disable-archos-gamepad-2-t3134339/page3

I found a solution to this problem
For me i have seen that i was using wireless bluetooth earphone.due to bluetooth connectivity they mistaken with controller.so if you are using bluetooth earphones just dont use while playing the game otherwise they will mistake our earphone with controller.so yup thats it it worked for mr.anyway those are facing this problem mainly are andriod 10 users because i already played amazing spiderman 2 on andriod 9 and i didnt face such like problems.also if the app doesnt install on your andriod 10 try unistalling other gameloft games and find a compatible version for your phone.you can find the version on youtube or google also.here is the youtube channel name andorid Games and type amazing spiderman 2 for andriod 10.

Related

[Q] AMAZING idea! Lack of skills! Xperia play games on SGS2

Well, first off, let me introduce myself, i used to be a apple user since the ipod nano 1g(got ipod touch 1st gen, iphone 2g, 3g, 3gs, 4, ipad 1, etc) but afer buying the galaxy S2, there is no turning back...Simply amazing hahah
Well, my idea is:
I can play using sixaxis controller on some games like emulators, etc...
BUT
What if we find a way to make Xperia optimized games to run on our galaxy s2 and achieve a way to map his buttons? We can build a dock on top of a play3 controller and we will have a homemade galaxy play haha
Just a idea, i dont have any knowledge regarding android systems...Would be great someone to shine a light on this...
Thanks in advance and sorry for my brazilian english hehe =)
uhmmm, most of the xperia play games can already be played on the sgs2 and even more cool games can be played on it that d not run on the play.
so i assume that there is hardly any common need for your request
I think playing is a lot better with REAL buttons than in screen gestures...I think you didnt read or just ignored what i said...
Anyway, Sixaxis got a upgrade and now its possible to map touchscreen gestures to the controller...one of the best apps ive ever bought...
But i'm still interested in what i'm saying...its not as accurate as xperia play...
you mean you want to play games on the sgs2 4,3" screen using a normal sixaxis controller?
Buy the sixaxis controller on the market, it let's you replace de touchscreen buttons by the buttons on your sixaxis controller, you just need to make a profile to every game you need, it even let's you give a button the swipe move, its a great feature
skynetwork said:
you mean you want to play games on the sgs2 4,3" screen using a normal sixaxis controller?
Click to expand...
Click to collapse
I know my english is not perfect, but you must be mocking me...I already wrote that two times and you are asking the same f***** thing...
aurelios69 said:
Buy the sixaxis controller on the market, it let's you replace de touchscreen buttons by the buttons on your sixaxis controller, you just need to make a profile to every game you need, it even let's you give a button the swipe move, its a great feature
Click to expand...
Click to collapse
Really? Now read my second post.
@Topic
I'm willing to donate to whoever does this kind of port properly...
Dude I don't really understand what you mean.
Those ganes can already be played as the other guy said, and you can connect a sixaxis controller via bluetooth so what do you mean? You want the sixaxis wired into the phone permanently? What's the point? -it's be massive.
Just make a sixaxis game gripper out of thermal setting plastic or something ;p
Ohhhh I now see what you mean, I've been looking for a way to map sixaxis buttons to play buttons..
That way the buttons would work a lot better and you wouldn't need to coonstantly alter the keymap for different games..
In the sixaxis controller key settings it does have buttons like l2 and r2 but I don't know why, haven't tried them because the other buttons like square, circle etc aren't there.....
Your statement about the xperia games being playable on other android devices is false. That's what he means. I just downloaded a fighting game that was designed for the play, onto my infuse 4g and it recognizes nothing when I touch the screen. This is his idea. To get the sixaxis to work for these games in particular. If I'm wrong please say so. But so far as i can tell there are some games that are xperia play only, and those are the games he is talking about.

[Q] All possible android tv box gaming solutions!!?

Hi,
I am interested in gaming over my imito mx1 android tv stick, but unfortunately the rom is not installed with the required touch screen drivers! so we can't use six axis or gamekeyboard applications for games emulation
so I searched and think about any other temporary solutions to play but non of them had all what I want!
For example:
1) PS3 controller & Xbox is restricted to some games like gta, shadow gun, sonic episode II..
2) Droidmote also work for some with addition of some accelerometer games "although it didn't work on my xperia play but work with the mk808 remote application! I didn't know why" . But in overall, I am not comfortable to play with touch game pad, hard buttons is the best! ( Yes I know that I can use my xperia play game pad to play as an option in the droidmote but as I said this is for some games, not all)
3) Moga game pad is a good temporary solution I think because it can play some extra cool gameloft games, so I am thinking to buy one!
4) Off course, the best solution is to wait a "Hero Developer" how can introduce a new rom with implemented touch drivers!!!
But untill that time, I tried another solution that to make some configuration in the keylayout fils of the PS3 controller to emulate the keylayout of my xperia play, so by that I think that I will be able to control all xperia play optimized games on my imito mx1!! BUT OFF COURSE I DIDN'T SUCCEED BECAUSE OF MY RESTRICTED KNOWLEDGE IN THIS FIELD
So, I need your help and suggestions!
Thank you.
musarezeq said:
Hi,
I am interested in gaming over my imito mx1 android tv stick, but unfortunately the rom is not installed with the required touch screen drivers! so we can't use six axis or gamekeyboard applications for games emulation
so I searched and think about any other temporary solutions to play but non of them had all what I want!
For example:
1) PS3 controller & Xbox is restricted to some games like gta, shadow gun, sonic episode II..
2) Droidmote also work for some with addition of some accelerometer games "although it didn't work on my xperia play but work with the mk808 remote application! I didn't know why" . But in overall, I am not comfortable to play with touch game pad, hard buttons is the best! ( Yes I know that I can use my xperia play game pad to play as an option in the droidmote but as I said this is for some games, not all)
3) Moga game pad is a good temporary solution I think because it can play some extra cool gameloft games, so I am thinking to buy one!
4) Off course, the best solution is to wait a "Hero Developer" how can introduce a new rom with implemented touch drivers!!!
But untill that time, I tried another solution that to make some configuration in the keylayout fils of the PS3 controller to emulate the keylayout of my xperia play, so by that I think that I will be able to control all xperia play optimized games on my imito mx1!! BUT OFF COURSE I DIDN'T SUCCEED BECAUSE OF MY RESTRICTED KNOWLEDGE IN THIS FIELD
So, I need your help and suggestions!
Thank you.
Click to expand...
Click to collapse
with the last versions of DroidMote Client and DroidMote Server, when you connect your hardware controller to the device with DroidMOte Client installed, you forwards the command of the hardware controller to DroidMote Server.
In this mode you can play also with all android multi-touch games with your hardware controller.
and with your harddware controller, you can press all buttons and axis simultaneously. (many touch points at server side.)
look the DroidMote Forum to understand all about DroidMote
with the same technique, and DroidMote Server for windows, you can play also all multi-touch windows 8 games
bye bye and look this:
http://www.youtube.com/watch?v=BM6W3Dq_yqQ
Thank you for rresponse, I appreciate that and also I am appreciating your great application, but we still talking about many other games that not recognize all needed inputs from the droidmote client or in general from other gamepads like PS3 or Xbox !!
I want to know the real name of action of my xperia play buttons to use it for configuration other keylayout controller,
so for example, when I press x button in my xperia play with scan code 304 or circle button with scan code 305, this make the avater in gangstar rio jumb or chang weapons!!
becuase I put d pad center for the x button and back for circle button as a names function but with no success!!
thank you.
musarezeq said:
Thank you for rresponse, I appreciate that and also I am appreciating your great application, but we still talking about many other games that not recognize all needed inputs from the droidmote client or in general from other gamepads like PS3 or Xbox !!
I want to know the real name of action of my xperia play buttons to use it for configuration other keylayout controller,
so for example, when I press x button in my xperia play with scan code 304 or circle button with scan code 305, this make the avater in gangstar rio jumb or chang weapons!!
becuase I put d pad center for the x button and back for circle button as a names function but with no success!!
thank you.
Click to expand...
Click to collapse
this are all keyevent:
http://developer.android.com/reference/android/view/KeyEvent.html
and you must create / customize your keylayout in /system/usr/keylayout in this mode:
http://source.android.com/tech/input/key-layout-files.html
this is the same way you personalize DroidMote configurations file /system/usr/keylayout/droidmote.kl
if a game support a controller or a keyboard, you can do all that you want. with the keylayouts.
if not support keyboard or conttrollers you must use a touch profile.
this is valid for all, DroidMote, ps3 controller, xbox 360 controller and xperia play hardware controls.
Now, after long time of trying almost all common function keys, it seems nothing can control the gangstar rio as my experimental game! so by pressing all these keys, I can't get any movement after its installation on my imito mx1 android TV stick, although the same version is installed on my xperia play and it is fully customized on its gamepad.
So my question is, why I can fully control this game on my xperia play and can't get any movement with the same version installed on my imito mx1 tv stick?
Other question, is it possible to customize a game to work on a specific gamepad ( not a gamepad on specific game)
Thank you

[HELP] Xiaomi mi BT Controller. right stick doesn't get recocnized by games etc

As you guys can read in the title i have a really big problem with my new xiaomi bt controller. first of all, i am using it for my Tegra Note 7.
scenario:
the pairing was extremely easy. just connected it via bluetooth, thats it. no additional app etc needed.
the first thing i noticed that the right stick won't do anything as i wanted to control the virtual mouse with it (mouse appears but doesnt move in any direction)
i thought, ok, maybe this is just a little bug. wouldn't bother me if gaming atleast would work fine.
so i tried out a few games with it like GTA SA, Implosion, Dead effect 2, Shadowgun Deazone etc. i also tried out emulators.
GTA SA:everything works fine. i was able to have full control over the game. even the right analog stick worked fine here to move the camera angle.
the big problem came with the 3 last games i named above.
implosion: this game autodetects if you have a gamepad connected and changes the in-game layout a little bit to fit the whole theme (virtual sticks etc will dissappear)
everything inside the game works fine EXCEPT for the RIGHT ANALOG STICK which is used to shoot in 360 degrees (just like in twin stick shooters). the game just doesn't do anything when i try something with the right stick. Normally this should work since when i use my xbox 360 controller, the right analog stick fires the equipped weapon in the direction you push the stick. on the xiaomi gamepad it just won't do anything as if i didn't touching the right analog stick at all.
dead effect 2: the problem in this game is similiar. in dead effect 2 you can go into options and remap your controller buttons etc. the big problem now is if i want to map the right analog stick to the "aim/look around" function, the game just doesn't recocnizes it as if i am not doing anything. (just like in implosion). so if i am ingame i can do everything but look around with the right analog stick. i can shoot, reload, move etc but not slightly change the way where i look. so everything from my controller is mappable except for...you guessed it...the right analog stick.
it just looks like those games pretend to not recocnize when i try to look around/aim etc.
shadowgun dead zone: same problem as dead effect 2. game has remapping options but wont recocnize the right analog stick when i try to map it to the "aim/look around" function.
emulators just work fine. (no misbehaviour until now)
btw the android system uses the Generic.kl layout file for the controller (so there is no special predefined vendorxxxx_productxxxx.kl inside the layout folder)
when i try all this with an xbox 360 controller (via usb otg) everything works just fine (even the virtual mouse).
so i am begging you guys for help because this is really frustrating if only very few android games work good while many don't.
i know that this would mean that the games that don't work probably are lacking some compatibility with this controller.
i just hope that there is a way with editing/creating a new layout file (.kl file) and remap the functions or something like that.
would be really nice if someone could help me with all this.
bump...
really no one?! i really need your help with this,guys
for the admins: if this is the wrong section, i would be glad if you could put it into the right one
You will not find many people here that use anything from this manufacturer. They are not really respected here so very few will buy any of their products.
zelendel said:
You will not find many people here that use anything from this manufacturer. They are not really respected here so very few will buy any of their products.
Click to expand...
Click to collapse
how and why are they not respected?!
GodOfPsychos said:
how and why are they not respected?!
Click to expand...
Click to collapse
They constantly violate the gpl. They have been known to take the code of other developers and remove the the authorship of the code so it looks like they made the code. I wont even get into MIUI, which is known as the joke of the android world. They tend to use sub par parts yet lie to people about it and get away with it due to the deal with china and lack of any real copyright enforcement.
zelendel said:
They constantly violate the gpl. They have been known to take the code of other developers and remove the the authorship of the code so it looks like they made the code. I wont even get into MIUI, which is known as the joke of the android world. They tend to use sub par parts yet lie to people about it and get away with it due to the deal with china and lack of any real copyright enforcement.
Click to expand...
Click to collapse
so you mean that everyone is gonna refuse to help me just because they hate/dislike xiaomi for their violation of gpl?! that has nothing to do with my problem and seems pretty off-topic to me.
does that mean that if i had any other controller brand (Moga, Steelseries etc), that i would receive more help for my problem from the community than im receiving now?!
idk but that just sounds ridicoulous (no offense). i mean it is just a bluetooth controller we are talking about here and not miui or other things from xiaomi.
seriously, anyone with enough knowledge about the layout files for bluetooth or otg accessoires like controllers, keyboards etc could actually help me with this problem.
the controller just uses 2 different axis inputs for the right analog stick than some other controllers which only get recocnized by very few games so far.
i just need someone who knows how i can make most of the controller compatible games recocnize the right analog stick.
at the moment i think that the controller uses Axis_Z and Axis_RZ for the X and Y angles instead of those which most of the other controllers use.
GodOfPsychos said:
so you mean that everyone is gonna refuse to help me just because they hate/dislike xiaomi for their violation of gpl?! that has nothing to do with my problem and seems pretty off-topic to me.
does that mean that if i had any other controller brand (Moga, Steelseries etc), that i would receive more help for my problem from the community than im receiving now?!
idk but that just sounds ridicoulous (no offense). i mean it is just a bluetooth controller we are talking about here and not miui or other things from xiaomi.
seriously, anyone with enough knowledge about the layout files for bluetooth or otg accessoires like controllers, keyboards etc could actually help me with this problem.
the controller just uses 2 different axis inputs for the right analog stick than some other controllers which only get recocnized by very few games so far.
i just need someone who knows how i can make most of the controller compatible games recocnize the right analog stick.
at the moment i think that the controller uses Axis_Z and Axis_RZ for the X and Y angles instead of those which most of the other controllers use.
Click to expand...
Click to collapse
No what I'm saying is that because of the oem most will not have any idea how to fix it or be able to even try to help fix.
As for the other makers, with them you had a better chance of someone e here having one and maybe coming across this issue.
Not to mention this is a development forum for mobile devices so a controller is a bit out of the realm of what is worked on here.
I would start by running a logcat while playing one of the games that don't work. That will at least give you an idea of what to look for.
GodOfPsychos said:
As you guys can read in the title i have a really big problem with my new xiaomi bt controller. first of all, i am using it for my Tegra Note 7.
scenario:
the pairing was extremely easy. just connected it via bluetooth, thats it. no additional app etc needed.
the first thing i noticed that the right stick won't do anything as i wanted to control the virtual mouse with it (mouse appears but doesnt move in any direction)
i thought, ok, maybe this is just a little bug. wouldn't bother me if gaming atleast would work fine.
so i tried out a few games with it like GTA SA, Implosion, Dead effect 2, Shadowgun Deazone etc. i also tried out emulators.
GTA SA:everything works fine. i was able to have full control over the game. even the right analog stick worked fine here to move the camera angle.
the big problem came with the 3 last games i named above.
implosion: this game autodetects if you have a gamepad connected and changes the in-game layout a little bit to fit the whole theme (virtual sticks etc will dissappear)
everything inside the game works fine EXCEPT for the RIGHT ANALOG STICK which is used to shoot in 360 degrees (just like in twin stick shooters). the game just doesn't do anything when i try something with the right stick. Normally this should work since when i use my xbox 360 controller, the right analog stick fires the equipped weapon in the direction you push the stick. on the xiaomi gamepad it just won't do anything as if i didn't touching the right analog stick at all.
dead effect 2: the problem in this game is similiar. in dead effect 2 you can go into options and remap your controller buttons etc. the big problem now is if i want to map the right analog stick to the "aim/look around" function, the game just doesn't recocnizes it as if i am not doing anything. (just like in implosion). so if i am ingame i can do everything but look around with the right analog stick. i can shoot, reload, move etc but not slightly change the way where i look. so everything from my controller is mappable except for...you guessed it...the right analog stick.
it just looks like those games pretend to not recocnize when i try to look around/aim etc.
shadowgun dead zone: same problem as dead effect 2. game has remapping options but wont recocnize the right analog stick when i try to map it to the "aim/look around" function.
emulators just work fine. (no misbehaviour until now)
btw the android system uses the Generic.kl layout file for the controller (so there is no special predefined vendorxxxx_productxxxx.kl inside the layout folder)
when i try all this with an xbox 360 controller (via usb otg) everything works just fine (even the virtual mouse).
so i am begging you guys for help because this is really frustrating if only very few android games work good while many don't.
i know that this would mean that the games that don't work probably are lacking some compatibility with this controller.
i just hope that there is a way with editing/creating a new layout file (.kl file) and remap the functions or something like that.
would be really nice if someone could help me with all this.
Click to expand...
Click to collapse
I also have the same problems as you. Now, still unresolved. You can try playing Modern Combat 5, Dead Trigger 2, right stick works very stable!
Lak1402 said:
I also have the same problems as you. Now, still unresolved. You can try playing Modern Combat 5, Dead Trigger 2, right stick works very stable!
Click to expand...
Click to collapse
yeah but besides playing madfinger games (dead trigger, unkilled etc) and modern combat, i really would like to play dead effect 2, telltale games and so on. i wish someone knew a fix for the right stick problem
Anyone found a solution for this?
Almost a year passed. Well, I have just bought that gamepad and I'm facing the same problem on my redmi note 4.
I found the solution on youtube.
If somebody else need it, here it is:
Sorry, I can not place any external urls yet, the original video is on the youtube.
It says that you have to edit /system/usr/keylayout/Generic.kl file via some root explorer. So I would better backuped it first somewhere.
You need find and replace next lines:
"axis 0x03 RX" with "axis 0x14 RX"
"axis 0x04 RY" with "axis 0x15 RY"
Save the file and reboot. I've cheked it and it works. But in this way you are remapping general keymap, that can be applied to other gamepads.
Here is another solution, but in this case some other keys stop working: https://github.com/moonlight-stream/moonlight-android/issues/92#issuecomment-215680259
rivsmaniac said:
Almost a year passed. Well, I have just bought that gamepad and I'm facing the same problem on my redmi note 4.
I found the solution on youtube.
If somebody else need it, here it is:
Sorry, I can not place any external urls yet, the original video is on the youtube.
It says that you have to edit /system/usr/keylayout/Generic.kl file via some root explorer. So I would better backuped it first somewhere.
You need find and replace next lines:
"axis 0x03 RX" with "axis 0x14 RX"
"axis 0x04 RY" with "axis 0x15 RY"
Save the file and reboot. I've cheked it and it works. But in this way you are remapping general keymap, that can be applied to other gamepads.
Here is another solution, but in this case some other keys stop working: https://github.com/moonlight-stream/moonlight-android/issues/92#issuecomment-215680259
Click to expand...
Click to collapse
Thanks !!! My mi Bluetooth game pad works great now with modern combat.

Touch screen gaming

Is there anyone that has found a solution for using a game controller (PS3, PS4, XBOX ONE, ect) to emulate touch controls for touch screen only games? I know I have rooted my installation and attempted to install the sixaxis app, since I had already bought it for one of my previous devices, but it always fails to configure Bluetooth. Are there any apps out there that can accomplish this that we currently know are working with this wonderful os...?
I tried 2 bluetooth gamepads made for Android, one of them can use the D-pad and ABXY in system but doesnt work in game, another gamepad doesn't work at all
Hope they fix/add support for gamepad soon so we can enjoy games on pc/laptop with no touchscreen support (I really wanted to play Implosion).
Try GameKeyboard +
I use it to emulate onscreen the physical gamepad to play nvidia shield exclusive Portal on Xiaomi Mi3, but I also see options to map physical gamepad or keyboard or even mice; might you find it useful.
darkcodemonkey said:
Is there anyone that has found a solution for using a game controller (PS3, PS4, XBOX ONE, ect) to emulate touch controls for touch screen only games? I know I have rooted my installation and attempted to install the sixaxis app, since I had already bought it for one of my previous devices, but it always fails to configure Bluetooth. Are there any apps out there that can accomplish this that we currently know are working with this wonderful os...?
Click to expand...
Click to collapse
Use "Sixaxis Enabler" from the playstore. Works fine for me.
TheBasterd said:
Use "Sixaxis Enabler" from the playstore. Works fine for me.
Click to expand...
Click to collapse
I'll give this and game keyboard a try... With sixaxis enabler, it sounds like all it does is make android recognize it as an android controller. If that is correct, then I don't need that due to the fact that remix os recognizes it as a controller just by plugging it in, but I need touchscreen emulation for apps that don't support controllers.
Bluestacks has some kind of keyboard control apk built in?
I tried it with Real Racing 3 and could steer, accelerate and brake using direction keys on a physical keyboard. But the graphics for the game itself weren't represented well and I switched to RemixOS. Which looks perfect in full screen, but alias there is no way to steer or brake.

Mc4 won't detect my gamepad on my redmi note 5a prime

I want to play Modern Combat 4 using my gamepad on my Redmi Note 5A Prime/Y1 (ugg) but it wont detect my gamepad, i try to connect all my gamepad (4 to be exact) but no luck. It Only allow me to play touch control. I try all my gamepad on the other games like GTA and Shadow gun and it work perfectly except MC4. I test the same game on my other MTK device, it detect the gamepad perfectly. So i assumed the fault is my redmi os. To make the long story short, i flash my phone with deferent versions of ugg from developer to stable, from oldest and soon.. But no fix. So i think the last Resolve is to modified the apk ( i paid for the game,so i think no piracy Issue?) The plan is change something on the apk using apk editor to think (the game) Is always connected with gamepad even no gamepad connected. that way i can used the gamepad On game..
CAN SOMEONE HELP ME WITH THIS? APP DEVOLOPERS? CODERS?
NOTE:
I ALREADY EXPLORED THE APK BUT I DON'T KNOW WHERE TO GO TO "SWITCH ON" THE GAMEPAD FROM THERE, I SAW THE BUTTON MAPPED BUT THATS ALL I KNOW.
HELP ME PLEASE.

Categories

Resources