yashsingh1/xdaforums huggingface dataset:
[Magisk] brakaman:
Hi

Just install the mod or need some app??

I on android 11.

I use sixaxis controller on my android 7 for a ds3 but on my android 11 doesn't works,

I don't know if the app don't get root or are incompatible with android 11, It's not find the Bluetooth mac direction.
[Magisk] aqvyx:
seems like dev abandoned the project
[Magisk] sousaptak:
cant find the latest version over anywhere, can someone upload it

:Edit

Here you go lads
[Magisk] ryzen23:
I install 1Controller module and check the dualsense (PS5ControllerAnalizer) app

When pressing the controller

Dpad OK

PS OK

L1- Create button

L2- L3 button

L3- Touchpad

R1- Option(Start)

R2- R3 Button

R3- another keycode:0

Cross ❌- Triangle Button

Square ⏹️- L2 button

Triangle 🔺- L1 button

Circle ⭕- Square

Option- another keycode:107

Share- touchpad

HOW to fix this?
[Magisk] latkz:
So I wonder to ask that can it add the support of Steam Controller?

Here is sth may help you:

GitHub - rodrigorc/steamctrl: Utility to setup Valve Steam Controller

Utility to setup Valve Steam Controller. Contribute to rodrigorc/steamctrl development by creating an account on GitHub.

github.com
[Magisk] boki0812:
Hi, could you help. I have Asus Zenfone 8 Flip and Asus KUNAI 3 Gamepad. It is paired, and it is work left and right in android menu, but in any game, no effects.
[Magisk] mickael28c:
Hey guys, I copied all these .kl files on my 2 Samsung devices:

* Samsung Note Pro 12.2

* Samsung Note 4

and still my 3 Xbox 360 controllers don't work. One of them is official for the other 2, I created my own .kl files with the correct Vendor and ProductID and same, they're not recognized at all.

I was putting a lot more info about how my system looks here:

https://xdaforums.com/t/unable-to-h...-controllers-recognized-by-android-5.4398429/

Would you know why that could be?

And what else could I try to see if I get this working?

Ta
[Magisk] CrysisLTU:
I added support for the Original Xbox Controller S: https://github.com/jokubasver/1Controller

Hopefully the dev will accept the pull request and integrate the commit to the main branch.
[Magisk] imaadgamer627:
Not working on A12 roms, my 360 controller doesn't light up
[Magisk] Hexadiius:
I have a question.

I have a gamesir 3gs and I want to play call of duty and apex legends whit controller, but the games don't recognize my controler.

If i instal this module will cod and apex will work whit controller ?
[Magisk] Shen Ron:
Does anyone need the kl for the Dual Sense, I have the proper working one that works as it should
[Magisk] Grovyle:
Yes please, I'm trying to use my DS for Apex Legends Mobile but it having the wrong key layout is driving me insane.
[Magisk] Shen Ron:
Rename the extension from txt to kl
[Magisk] Grovyle:
Sadly Android still gets the wrong button input from my DualSense, but still thank you!
[Magisk] Shen Ron:
Did you restart your phone after you place the file and check if the file permissions were the same as the others
[Magisk] Grovyle:
Yes I did. The phone (OnePlus 8 Pro running latest crDroid/Android 12) still thinks that the square key is L1, or that the O key is the X key. The Magisk module also doesn't fix it.
[Magisk] Shen Ron:
It's probably the rom then, check the system one and see what's different between the stock one and the one I gave you, then change the values so they match the new file, save it, reboot and test it
[Magisk] Grovyle:
Funny enough, that's exactly what I did before overwriting it with your file. It was basically the same.
[Magisk] Shen Ron:
crDroid is the problem then, it's probably mixing up the configuration for those 2 inputs. Best I can tell you is install another game that supports controller use and see if it's also a game problem. And to see if everything else checks out use another phone and check the kl file for that one and see if there is even the slightest differences and try it if you don't have any problem using the controller on that phone
[Magisk] Shoruk3n:
Did you find a solution? I'm in the exact same boat, I'm on crDroid and want to play Apex Mobile but the button assignments are all wrong.
[Magisk] Grovyle:
Sadly not, sorta just gave up.
[Magisk] plemiannik:
What is the PIN for DualShock 3?
[Magisk] Shoruk3n:
Do we know for sure that the problem is due to crdroid? Would installing a different ROM fix it?
[Magisk] Grovyle:
I think the issue is Android 12 actually. Try going back to A11?
[Magisk] mustacix:
Hi, with the long journey i edit keylayout file with the correct order. You can try this.
[Magisk] GamingSoldier:
Hi guys, i have a "Nintendo Switch Pro Controller" but it doesn't work when i connect to my phone, i already added the configurations files, is there any fix for this?

I made the configurations for the Gulikit kingkong 2 pro (Direct Input Mode) working everything, and the adapter JYS-NS130, now the buttons are working fine on my galaxy s10, with the JYS-NS130 is preffered to put in to PS3 mode, the other 2 has combined the left analog stick with the d-pad
[Magisk] andrea0807:
Can I connect the DualShock 3 to the smartphone via bluetooth with this module?
[Magisk] hanschke:
Hope anyone will add more Controller and Update the modul
[Magisk] GamingSoldier:
Adding the bindings seems easy, I've done before, but i haven't figure out how to make it work a controller that connects but doesn't register any buttons inputs. (currently experiencing this with the switch pro controller).
[Magisk] GamingSoldier:
For me only worked with wired dualshock 3, the method that the dualshock 3 pair with the bluetooth is odd, the ps3 controller pair with the bluetooth device if the bluetooth has the same mac address as the bluetooth on the phone, so if you can't change the bluetooth mac address you can't connect the dualshock 3 wirelessly.
[Magisk] KaMyKaSii:
Do you have access to a computer running Linux (even in live mode)? If yes, you can connect the controller to the computer, run the command "cat /proc/bus/input/devices" and get the values of the Vendor/Product/Handlers event number and then use evtest (you will need to install it with "sudo apt install evtest" first) to get the code of all the buttons and axes with the command "evtest /dev/input/eventNUMBER". So you can create the keylayout with all the necessary information. Note that the values of the axes are given in decimals but in the keylayout it is necessary to put them in two-digit hexadecimal, so for example for axis 10 reported by evtest you must put in the keylayout as 0x0a.
[Magisk] coderex96:
Can you add some compatibility with GameSir controllers? 😍
[Magisk] evannsk8:
Hi, thanks for a great job. This kl is work perfectly. Can you create for inverted (Vertical Right Analog) player? I already change RZ to "axis 0x12 invert RZ" but it doesn't work. Thanks.
[Magisk] frankh93:
Hey guys, where I can find/download the zip to install this module? Thanks
[Magisk] AllhgY:
thx
[Magisk] wiktormuzyk:
Hey. Does it work on Android 12.5.8?

I bought already three controllers - Nintendo switch controller, Stratus XL Steelseries, and ps4 dualshock - just to play Fortnite on Android..... yes I wanted it to just plug and play but... nope. Testing since one week already... Surprisingly only Nintendo pad worked fully - ONCE when connected through OTG. Once and never again xD

Ps4 pad though works nicely within the OS, but doesn't work properly in-games (something with the bindings).

Stratus XL even if designed especially for Android - works as poorly as Switch pad...

I'm committed to find a way to use any of them (prefer ps4 pad) on a daily basis to game on my Redmi Note 9 Pro.

Do I really have to root device to make it work?

How can I change the keybindings in Android by myself?
[Magisk] zusukiy:
Hi happy 2023, the module doesn't work on my Poco F3 wired😞. Bluetooth work with/out though but I hope u can fix wired ps4 controller not working on Poco F3😔
[Magisk] rintinfinn:
I would really like to run this module with shizuku/lspatch. I think lspatch needs apks to run at the moment. Is there a way to convert 1controller into an apk at the moment or maybe will it be possible to run 1controller via lspatch in the future?
[Magisk] Szerry:
This module not working on Crdroid 10.2 on Xiaomi Mi 10t Pro. Nacon controller ( android detect it as Xbox generic controller) and Dualsense not working properly... I tried everything, swap keylayouts, nothing changed. (L2 R2 buttons are "connected" with right analog stick). Someone know if I will change all keylayout folder with older rom, it will help with that issue?
[Magisk] zandatsu06:
Is anyone here have sn30 pro controller?
[Magisk] Rekoba:
How use it?

Enviado desde mi SM-G965F mediante Tapatalk
[Magisk] Electric1447:
Install from the offical magisk repo and enjoy :)
[Magisk] harshgohan:
How to use this module
[Magisk] Electric1447:
Install from the official magisk repo and enjoy :)
[Magisk] Adriano-A3:
Device: Xiaomi Mi Mix 2S

Rom: Xiaomi.eu 8.11.15

SDK: 28
[Magisk] Electric1447:
Check if you have Vendor_054c_Product_0268.kl in system/usr/keylayouts/
[Magisk] Windroid-user:
I'm sorry but what does this exactly do?
[Magisk] Electric1447:
What do you mean?
[Magisk] Windroid-user:
Wow I literally was about to edit my reply to be more specific but you caught me with that horrible lazy, poor question.

I don't know how this would help me because it doesn't exactly state how it would help me. If that makes sense.
[Magisk] Electric1447:
I think I got you, this module adds/replaces the keylayouts for many controllers because sometimes you wouldn't get those files or the mapping would be incorrect.
[Magisk] Windroid-user:
Yes you got me. Just one problem... I didn't exactly understand the answer.

Are keylayouts meant to show which button is which. So that games which automatIcally support native game pads will work without unexpected issues related to the mapping of the controller?

Thanks for helping me btw
[Magisk] Electric1447:
Think of keylayouts as a translator,

If you press on the A button on the controller, the phone reads that as key 304 so keylayouts check the device (for ex. X360) and maps the keys to the correct input for ex. key 304 = 'A'
[Magisk] Electric1447:
Oops I sent 2 messages
[Magisk] Windroid-user:
Yes that's how I was thinking about it.

Ok so I have a DS3 and DS4 controller which both work. I guess there's no harm in having this, any games you recommend to play with controller lol.
[Magisk] Electric1447:
Mainly emulators like ePSXe, PPSSPP, RetroArch, Mupen64Plus.

Many games like gta:sa, sonic cd and more also work better with controllers
[Magisk] Windroid-user:
Oh yeah how could I forget about emulators. Especially that I now have a 10000 mah extended battery. Alright I appreciate your help even though I don't think I'll look into gaming for now. Probably in the future though.

Quick question:

Would you recommend a one plus phone. E.g, one plus 5 or something like that. Or do you think the price is low because it won't last that long like lets say this note 4 I'm typing on.
[Magisk] Electric1447:
I personally never owned an OnePlus device, but some of my friends do, and they say it is very good.

OnePlus phone are cheap because they want people to prefer them over other flagships, their battery is pretty beefy for the price.
[Magisk] Windroid-user:
Yeah I agree with you, oneplus 5 or 5t might be my next phone. I wish it had a removable battery and micro sd card storage though. I would've bought an lg g3 or g4 but the bootloop issues are crazy on the Internet.

I would rather buy oneplus than lg or sony.

Dash charge must degrade the battery quickly though.
[Magisk] shafayat1004:
okay so I installed the module. Have a DS3. Oreo. what to do now?
[Magisk] Electric1447:
Connect the DS3 using an otg cable and enjoy :)
[Magisk] shafayat1004:
No IME needed?
[Magisk] Electric1447:
What is IME?
[Magisk] Adriano-A3:
Yes, I have it.

# Sony Playstation(R)3 Controller
[Magisk] Electric1447:
https://play.google.com/store/apps/details?id=ru.elron.gamepadtester&hl=en_US

Download this and see if controller responds
[Magisk] Nevvy:
It's possible to add Steam Controller support?
[Magisk] Electric1447:
Unfortunately I don't have a steam controller, so I can't test that. (I'm not saying it wouldn't be added but not currently).
[Magisk] Adriano-A3:
Controller wasn't detected by app
[Magisk] JustEPS:
I already connect my phone to a DS3 controller using sixaxis app, do i still need this module ?
[Magisk] Electric1447:
You can use that instead of the app, this module does the same as the app, use what you prefer
[Magisk] Electric1447:
So I don't know what can cause this, even without the module the controller should be detected.
[Magisk] Adriano-A3:
It is detected by system but doesn't work.

I'll wait for somebody else get DS3 working on Android Pie.

Thanks bro.
[Magisk] Electric1447:
No problem, glad to help!
[Magisk] idontglow:
Is it possible to add support for HID devices? If so, I know a repo with configs for many other controllers.
[Magisk] Electric1447:
Don't know about HID devices, I'll be glad for the repo! :D
[Magisk] idontglow:
Might not be the best but here you go: github/maschell/controller_patcher_configs

Can't post links myself.
[Magisk] Droidge:
Running official LineageOS 15.1 on a Moto X4. Installed this module, connected my DS3, but Gamepad Tester does not recognise any inputs, although it does show the Playstation(R)3 key layout. Any help would be appreciated.
[Magisk] Electric1447:
Did you connect it trough otg?
[Magisk] Droidge:
Of course, yes, haha. I don’t know of any other ways that work on Oreo. For a split second a “USB supplying power to attached device” notification shows up, then it disappears and all four of the DS3’s LEDs begin to blink.
[Magisk] Electric1447:
Idk when I tested it (On oreo) I just turned it on and connected it via usb cable (The controller is really picky about the cable you use) and only 1 link led turned on.
[Magisk] Ice Bear:
Ice Bear only has Wii controllers. Will there be support for Wii controllers or is that out of the question?
[Magisk] Electric1447:
Pretty much out of the question.
[Magisk] MrBrady:
Will this work with Xbox 360 wireless controllers (I see OP just lists 360)? If so, is there a write-up available for how to initially connect it to the phone?
[Magisk] Electric1447:
Yes it work with Xbox 360 wireless controller.
[Magisk] MrBrady:
That is good to hear. How do I connect? When I turn on the controller, the center button flashes but never shows up as a Bluetooth device when I try to add a new connection in System Settings.
[Magisk] Electric1447:
That's because Xbox 360 controller doesn't have bluetooth lol, you need a usb wireless adapter.
[Magisk] MrBrady:
Oh, interesting. I didn't realize it was wireless USB.
[Magisk] Droidge:
Just tried it out with an AmazonBasics USB-OTG adapter and a Motorola USB cable. Swapped between a lot of other USB cables. No dice. Can we communicate via PM? Maybe there’s a bug in here somewhere we could fix.
[Magisk] Electric1447:
Sure
[Magisk] kihope12:
i connected my ds3 using otg to my phone with android pie, it is still does not work did i miss something? or this module does not works like that?

---------- Post added at 01:33 PM ---------- Previous post was at 01:31 PM ----------

Am on pie too, same problem, can u help with logs etc?

---------- Post added at 01:33 PM ---------- Previous post was at 01:33 PM ----------

Am on pie too, same problem, can u help with logs etc?
[Magisk] Electric1447:
Idk DS3 worked for me, I don't know why is doesn't work for some people, maybe different revisions of ds3 are not compatible.
[Magisk] aleessio:
Hello, I'm trying to connect an XBox one wireless controller (not bluetooth). Any help? Should I use the wireless adapter or is the OTG adapter enough?
[Magisk] Electric1447:
Pretty sure both will work.
[Magisk] aleessio:
I tried OTG and does not work for sure. In your experience, is there any extra step I should take? I'm using an S8, stock Oreo 8.0, rooted.
[Magisk] Electric1447:
Something here is worng cause I'm using S8,

Download gamepad tester from play store and see if it reconginizes the controller.
[Magisk] aleessio:
I downloaded the tester app you suggested in an earlier post and it doesn't. The S8 keeps saying "charging connected device". I tried to set connect MIDI device as I read on some other guides, but it reverts back to charging immediately.
[Magisk] Electric1447:
It supposed to be "charging connected devices", but does the tester app say "Microsoft Xbox One Controller"?
[Magisk] aleessio:
Nope. Id, name, vendor and product all says "?".

---------- Post added at 10:17 PM ---------- Previous post was at 10:16 PM ----------

Also, the xbox logo does not turn up.
[Magisk] Electric1447:
Bingo, the problem is with the Controller/Cable, Your phone doesn't detect it.

Are you using offical Xbox One controller?

Have you tried multiple cables?
[Magisk] Electric1447:
Check for a tutorial on how to connect the controller, you are probably doing it wrong.
[Magisk] aleessio:
Looks fine to me, I even have an usb DAC and it connects just fine. Moreover, when i connect it the controller rumbles, then nothing happens. Is there any log file in the system I can check? Sorry for insisting :)

UPDATE: I tried to connect a steam controller and it works, even though it is recognized as a keyboard, but this is expected as it is not supported by your module. I also downloaded OTG troubleshooter and it confirms that OTG is recognized, though it says that the device is not recognized by Linux or Android. I guess it is a kernel problem, but then, why does it work for you? which kernel are you using?

UPDATE 2: sorry, I missed this message before. Yes I am using an official controller and I have tried multiple cables. Actually, I used the same cable for the steam controller and it works.
[Magisk] Electric1447:
Idk what it is, moreover S8 already has all necessary files for Xbox One Controller, so it should work even without the module, something is wrong with the Controller/Connection, this is not a problem with the module rather a connection problem.
[Magisk] aleessio:
Yeah this is definitely not your module fault. Thanks for the help! I could actually turn on the gamepad from the phone using USB/BT Joystick Center 2019 (the controller led finally lit up), but I had no luck mapping it.

By the way, I checked the VID (045e) and PID (02ff) of my controller, and I do not see the relative .kl file in the device list of Gamepad tester. I guess if anyone else out there has the same version as me and if they can make it work :(
[Magisk] Electric1447:
Try charging the controller & phone to atleast 50% and try to connect different usb cables as some of them might be picky
[Magisk] Iskren.:
It would be nice to support the razer controller - Razer Serval. Thanks! :)
[Magisk] Electric1447:
Razer controllers might work, please report here if they do.
[Magisk] karandeep718:
So can I connect my Xbox 360 wireless controller with a cable and use it
[Magisk] Electric1447:
Yes
[Magisk] JVMgames:
Xbox ONE contoller isn't working on my mi mix 2
[Magisk] Electric1447:
Try this app and see if it recognizes the controller.

If it doesn't recognize the problem is with your controller/cable/phone
[Magisk] JVMgames:
Didnt recognize but it's not a physical PROBLEM because the controller worked in other ROM
[Magisk] Electric1447:
Interesting, which "other" rom worked, and which one are you using now?
[Magisk] JVMgames:
I'm using MIUI 10 and it worked on Syberia Project(pie)
[Magisk] Electric1447:
I've got many reports of MIUI 10 issues, But unfortunately I don't have an MIUI 10 device so I can't investigate, Currently MIUI 10 is unsupported, sorry :(
[Magisk] JVMgames:
This is so sad, but ok.

---------- Post added at 03:21 AM ---------- Previous post was at 03:09 AM ----------

I think that is something about Permissions because gamepad tester says permission denied when I try see connected devices.
[Magisk] KeiranGinge:
Hey,

I think there may be a slight issue with the DS4 controller. I believe that the PS button has been mapped to android home function rather than the correct function for the PS button - this brings up a slight issue in that you need to press the PS button to have the controller work with the Remote Play app. Anyone got a way to fix this? :)
[Magisk] Electric1447:
Which one is the correct function, I mapped it to the home button because I didn't know what is the right function.
[Magisk] KeiranGinge:
I assume there is a specific PS button function - or maybe it's bundled in with xbox's button or something?

I think Android Pie was meant to fix the mappings for controllers for all devices (not that my tablet will ever get that update - stuck on Oreo) i'll try digging through and finding the .kl files if I get some time?

The only other way I could think of finding the function is to look at the code for the remote play app but I wouldn't know how to even start there!
[Magisk] Electric1447:
I'll try to find that function, if you find anything please let me know.
[Magisk] KeiranGinge:
I've found this old post: https://xdaforums.com/general/help/dualshock-4-keylayout-pushing-adb-t2839976

It seems to be using keys 172 and 317 in addition to your own .kl files but I'm unsure if they are the correct functions. I'll try testing it today if I get chance.
[Magisk] Electric1447:
This mapping for a very old firmware, and some mappings there are incorrect, and the ps key is still mapped to home there, but thanks for sharing that anyway.
[Magisk] KeiranGinge:
Ah damn, thought that might be it! Will let you know if I find anything more.
[Magisk] KeiranGinge:
So here's a copy paste of the .kl file from a pixel 2 with Android Pie loaded on:

# Copyright (C) 2017 The Android Open Source Project

#

# Licensed under the Apache License, Version 2.0 (the "License");

# you may not use this file except in compliance with the License.

# You may obtain a copy of the License at

#

# http://www.apache.org/licenses/LICENSE-2.0

#

# Unless required by applicable law or agreed to in writing, software

# distributed under the License is distributed on an "AS IS" BASIS,

# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

# See the License for the specific language governing permissions and

# limitations under the License.

#

# Sony Playstation(R) DualShock 4 Controller

#

# Mapping according to https://developer.android.com/training/game-controllers/controller-input.html

# Square

key 0x130 BUTTON_X

# Cross

key 0x131 BUTTON_A

# Circle

key 0x132 BUTTON_B

# Triangle

key 0x133 BUTTON_Y

key 0x134 BUTTON_L1

key 0x135 BUTTON_R1

key 0x136 BUTTON_L2

key 0x137 BUTTON_R2

# L2 axis

axis 0x03 LTRIGGER

# R2 axis

axis 0x04 RTRIGGER

# Left Analog Stick

axis 0x00 X

axis 0x01 Y

# Right Analog Stick

axis 0x02 Z

axis 0x05 RZ

# Left stick click

key 0x13a BUTTON_THUMBL

# Right stick click

key 0x13b BUTTON_THUMBR

# Hat

axis 0x10 HAT_X

axis 0x11 HAT_Y

# Mapping according to https://www.kernel.org/doc/Documentation/input/gamepad.txt

# Share

key 0x138 BUTTON_SELECT

# Options

key 0x139 BUTTON_START

# PS key

key 0x13c BUTTON_MODE

# Touchpad press

# The touchpad for this joystick will become a separate input device in future releases

# and this button will be equivalent to left mouse button

# Therefore, map it to KEYCODE_BUTTON_1 here to allow apps to still handle this on earlier versions

key 0x13d BUTTON_1

I think therefore the correct function BUTTON_MODE - I'll give it a test later this evening and see if it works

:)
[Magisk] Electric1447:
Thank you very much, I'll test that myself later, and if everything works, I'll update the module, and I'll mention you in the credits :)
[Magisk] Electric1447:
I have updated the module with those files, thanks!
[Magisk] KeiranGinge:
Ah awesome, thanks! You didn't need to mention me, I didn't do much at all but I appreciate it.

Unfourtuantly, it doesn't seem to have fixed my issue with PS4 remote play but I'm starting to think the issue isn't *completely* with the mappings - might have made you do all this for nothing.

Thanks though! :)
[Magisk] David_#27:
So how is the process actually? You install the module and then what?
[Magisk] Electric1447:
Your mappings should be correct after you install the module, no app/terminal required.