yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Sievo666:
This is to enable playing remote play ps4 from any android using the dualshock 4 controller as well as ds3 I believe.
[Android Apps and Games] Guildan:
Using Beta 3 -

Verizon Note 4 - Un rooted - OTG Cable - Dualshock 3 - Works great! All buttons appear to work.

Verizon Note 4 - Un rooted - OTG Cable - Dualshock 4 - The left analog stick works, cross and triangle appear to be swapped, and a few other buttons work. No D pad, nothing really else works.

How would I go about switching the key binds? I've got the sixaxis app, but no root. I'm also using an OTG cable for the Dualshock 4. (It's not quite as obvious as you say)
[Android Apps and Games] TheLeapist:
You need to be rooted to use the six axis app. And then you'd just pair the ds4 using it and the key bindings are right in the settings. But without root that app will avail you nothing.

I didn't mean to offend with my word choice. It was directed at sir earl which is why I chose to use the word obvious.
[Android Apps and Games] Beartax:
On Nvidia Shield portable using Beta 3:

Working: Face buttons, Dpad, Analog Sticks, Triggers and Bumpers.

Bugs: X button is Square button and Circle button is triangle button

So basically almost perfect. I don't use the Sixaxis program at all.

Note: In Beta 1, the buttons were not swapped and all worked perfectly except no Dpad.
[Android Apps and Games] orangedrink888:
Beta 1 works for me... beta 3 I get the error c-80f80a01. Im on an Nvidia Shield Portable
[Android Apps and Games] Kokkie_81:
hi,

Just tested on my non rooted S5 and PS4 Can connect with app beta 3.

L3 is doing ok.

X is triangel

L1 is cirkel

Dpad doesn't work

Rest of buttons i don't have tested.

It's à great start keep up the good work! And hope to see the next update to test soon!
[Android Apps and Games] sir_earl:
I'm not sure what the best solution is here. Native gamepad support on Android is a bit of a mess to be honest. Even for the Dual Shock 3 controller, which has been around for ages there are key layout files that swap the Cross, Triangle, Square and Circle buttons, and others that don't. For the Dual Shock 4 things are worse, because many devices don't have a key layout file for the Dual Shock 4 (as in the case you're seeing here), and so the mappings fall back to defaults (in the Generic.kl) file. To make matters worse, many keylayout files map different controller buttons and sticks differently, so the client app is forced to have special handling for each controller anyway. If Android would just pass the raw key codes through things would have been much simpler.

One hack might be to look in the /system/usr/keylayout/ folder for the appropriate .kl file - if it exists, read through the file manually and check which mappings are used, then adjust accordingly. If the .kl file doesn't exist, you would need to use the 'Generic.kl' file, although I'm not sure all buttons will even be mapped on the controller in such a case, so that might not work.

Any other solutions would need root access to manually create the appropriate .kl file with the correct mappings. Let me see what I can come up with!
[Android Apps and Games] Kokkie_81:
Hi

Thanks for the explanation. I've looked in the folder and there is no appropriate.kl in it. So I've looked at the generic.kl and there are a lot of buttons in it. I'm not sure what I can do with it. So if you want to have that file I can sent it to you no problem. Just let me know.
[Android Apps and Games] sir_earl:
It might be useful to know whether all buttons and axes are working with the Generic.kl file. Any chance you can install 'Gamepad Tester' from Google Play and check whether all buttons, triggers and sticks are giving output?
[Android Apps and Games] Kokkie_81:
I've installed gamepad tester and here the following output signals for the DS4

D-pad up: only hat y :-1.0 moves is up on display so OK

D-pad right: only hat x :1.0 moves is right on display so OK

D-pad down: only hat y : 1.0 moves is down on display so OK

D-pad left: only hat x : -1.0 moves is left on display so OK

Triangle: keycode 99 is X on display

Circle: keycode 98 is not on display

Cross: keycode 97 is B on display

Square: keycode 96 is not on display

R1: keycode 101 is not on display

R2: keycode 103 is R1 on display

R3: keycode 108 is start on display

L1: keycode 100 is Y on display

L2: keycode 102 is L1 on display

L3: keycode 109 is select on display

Options: keycode 105 is R2 on display

Share: keycode 104 is L2 on display

PS button: keycode 110 is not on display

Touchpad button: keycode 106 is TL on display

L3 and R3 the axes looks to work OK on the display

I've also attached the generic.kl from my S5

Hope to inform you well.
[Android Apps and Games] Fresh2def:
everything is good

Hi just wanted to jump in and say a million thanks to OP i am using beta 1 on a tmobile note 4 and everything is working i just switched the x and o and the triangle and square but everything else is working properly the only thing i experienced once was d pad down got stuck press i think when i press the toggle to use the ps onscreen button but then it got fixed but like i said thanks a billion wish all developers stood behind their software like u do
[Android Apps and Games] silent sawtooth:
Thank you for your awesome work. Do you plan on releasing a new version with the buttons switched back to the way they were in Beta1? I'm using the nvidia shield portable, and in beta3 everything works perfectly except the triangle, x, circle, and square buttons are switched. Also, Is there somewhere we can donate for your awesome work?
[Android Apps and Games] sir_earl:
Changelog:

- Swap A/B and X/Y on Nvidia Shield

- Hopefully fixed up mappings for DualShock 4 controller over USB (especially when missing 'Vendor_054c_Product_05c4.kl').
[Android Apps and Games] somepepeshit:
Hi, sorry to seem ignorant but what does this mod do? I bought the sixaxis controller app but couldn't get it working properly...will this mod help with that?
[Android Apps and Games] arqcan:
I've tested beta 4 on my fire tv and with a Dualshock 4 and the face buttons appear to be correct, the options and share buttons work, however the d pad and the right analogue stick don't work.

I cant find a way to try and install the gamepad tester on the fire tv.
[Android Apps and Games] gamermage:
Galaxy S5 Verizon

Ipega 9025 bluetooth

Beta 4

The second triggers don't work, dpad still not functioning, right analog as well. Maybe remapping the select button to the PS button would be a good idea, I never use the share button.

gametester output

dpad up = hat y -1

dpad down = hat y 1

dpad left = hat x -1

dpad right = hat x 1

L2 = keycode 104

R2= keycode 105

right analog

x axis = z

y axis = Rz
[Android Apps and Games] Kokkie_81:
I've tested the beta4 version on my galaxy S5 G900f with the DS4 and PS4. everything seams to work now (in GTA 5) also dpad, options, share and sticks only the ps button and touchpad swipe doesn't work. Touchpad button work OK.

So i think when ps button can be added it's working perfect.

Thanks [MENTION=4183459]sir_earl[/MENTION]

update: microphone also doesn't work.
[Android Apps and Games] orangedrink888:
EDIT: Nvm... all buttons are mapped correctly on the nvidia shield portable!! :) great job!
[Android Apps and Games] R1ncew1nd:
Will try this on Lenovo Yoga HD10+, Galaxy Ace 3 & Rockchip T-R42 "Android TV box"

As soon as i get home to my PS4. looks awesome !
[Android Apps and Games] arqcan:
Just a quick update, when i synced the daulshock 4 to the fire tv using Bluetooth, rather than a cabled connection, it mapped a different set of controls;

everything was right except for r2 and l2 did nothing

share button brought up the touch pad button

and the playstation button did nothing.
[Android Apps and Games] MyPeople:
With beta 4 my cousin, who lives in a different city, could connect to my PS4 and play GTA V with his Huawei phone.

My question is: this mod is intented to make any gamepad work with sixaxis controller (for example moga controllers)?

If my cousin buy a dualshock 4 will he be able to play just with this mod and sixaxis controller?

No need to use map file or things like that?

PS: A noobs proof how to for those new with sixaxis controller will be appreciated
[Android Apps and Games] Can0dope:
Works on AT&T Samsung Galaxy S4. Button mapping is way off though... any advice? Or should I just play around with it?
[Android Apps and Games] MyPeople:
Sorry for my noobiness.

But if I want to use this with a Moga Pro or Xbox 360 controllers do I need to use Sixaxis Controller app or use some special software to map the buttons?

thanks u
[Android Apps and Games] smarcisin:
Beta 4 not working any different then other betas for me on Sony Z2 tablet...cross and square swapped as is triangle and circle. Dpad dead too.
[Android Apps and Games] Sirchuk:
Here's what I did:

Installed beta4

Connect DS4 via OTG cable and synced in sixaxis.

Disconnected OTG cable and went wireless.

X/Square and Triangle/O are swapped

R1/R2/R3 and L1/L2/L3 appear to work.

I'm attempting to play Destiny remotely. I can run with this whereas I couldn't run prior (didn't recognize L3 for running).

If I pair it to a PC and without sixaxis connect via the build in controller, it won't work correctly and has HORRID input lag. Connecting via sixaxis resolves the lag but swaps those buttons. not sure how I can remap them in sixaxis to fix it. Any ideas?

Thanks! Now to try to get it to work over LTE. I think I'll try via the Fake WiFi in Xposed.
[Android Apps and Games] Sirchuk:
My button mapping in sixaxis to fix it :

Cross=A

Circle =B

Square =X

Triangle =Y

The rest are left at default. Also to connect remotely I had to use 4g and not lte to get it to connect but it fails with error 88001042. In the other thread I could get it to connect remotely with .70 but the controls didn't work correctly. Perhaps you two could collaborate or illustrate what I'm doing wrong.
[Android Apps and Games] sir_earl:
Version 0.7 on the other thread is actually just Beta 1 from this thread. Does rebooting the device resolve that error you're seeing?
[Android Apps and Games] sir_earl:
I've noticed the DualShock 4 can have really bad lag on some devices over bluetooth without using the Sixaxis Controller app. Probably creating the appropriate 'Vendor_054c_Product_05c4.kl' file would resolve the issue, but I'm not completely sure. If you've got root access though, you're better off using the Sixaxis Controller app, as it gives several advantages.
[Android Apps and Games] Sirchuk:
Gotcha. Rebooted and it connected! Then I exited to start sixaxis, which refused to see the DS4. Killed it, restarted sixaxis, it paired this time. Ran remote play again and it failed to connect. I ran out of time to try it again, but since it worked once I'm sure it'll work again. Thanks!
[Android Apps and Games] Arkmanpt:
Anyone has been able to get sixaxis to work in lollipop? Just upgraded my note 3 and when I start the driver I get segmentation fault error.

Thanks
[Android Apps and Games] Sirchuk:
I didn't have an issue with sixaxis. It works on my nexus 6. I needed to use the PC app to pair my ds4 since it wouldn't pair with OTG.

Also believe I got it working on a local connection but remotely it wouldn't work. Neither lte, 4g, nor a remote WiFi connection would connect on lollipop.

Works great on my wife's rooted note 4. I've been playing destiny all morning while out of state.
[Android Apps and Games] drktrts:
Is there a way to use sixaxis but connect with otg instead of bluetooth? I know this is sixaxis core funtionality but the bluetooth interferes with 2.4 Ghz wireless signal and theres not much i can do for that unless i pick up a 5Ghz router but that doesnt resolve the problem if i want to be able to connect through any wireless connection
[Android Apps and Games] turnerm05:
This is working perfectly on my shield tablet with the shield controller. Thanks for all your efforts!
[Android Apps and Games] Turb007:
Hi , I have installed beta 4 on my nvidia shield portable and all buttons seem to work well but everytimr I use a button I get the overlay on my screen which makes it pretty unusable. Is there a way to turn this off please ? Thanks and great work ..cheers
[Android Apps and Games] turnerm05:
This means that you still have the game mapper running. Delete the game mapper profile for the remote play app and you'll be good to go.
[Android Apps and Games] Sirchuk:
This works great on my wife's rooted note 4. Completely payable even in destiny.

My nexus 7 2012 has horrible input lag with just the on screen buttons, which carried over to the controller.

My nexus 6 I can get working at home but not remotely. What's odd is that I can turn it into a hotshot and play on either the note or nexus 7, just not on the nexus 6 itself.

I've got to go out of town next week and would love to get either nexus working instead of asking my wife for her note ☺

Any ideas? Thanks!
[Android Apps and Games] Turb007:
3891220

That sorted it thanks :):good:
[Android Apps and Games] arqcan:
I've had a chance to have a proper play around this weekend, on the fire tv the L2 and the R2 buttons are the only issues left, when pressed they do nothing,

I paired the DS4 as a bluetooth controller and using beta 4 all the button work [share button operates the touchpad]. I tested this with Joystick Tests and it shows the L2 trigger as 'Generic Axis 1' and R2 as 'Generic Axis 2' Is there a way this can be edited/added to the app or is this a limitation of the fire tv? Since i got a UK one i'm unable to gain root access so i can't try and alter my own keypress commands.

Any advice or suggestions?
[Android Apps and Games] crazygoldfish:
Thank for creating this.

I'm can use my shield controller with remote play

I can now sell the rather disappointing ps TV !
[Android Apps and Games] turnerm05:
Not the cheapest option but... Seriously, a shield tablet with shield controller is perfect. I honestly don't even notice any lag.
[Android Apps and Games] crazygoldfish:
I agree shield controller and shield works great, i coukd get the ds4 to work but the lagwas awful.

Ive out my ps tv on ebay now.

---------- Post added at 09:10 PM ---------- Previous post was at 08:20 PM ----------

Any ideas how I can sidelod this to a fire TV, when I try via add says app is already installed and won't let me.

When I use a ps4 controller I don't have r1, r2

Either usb or Bluetooth
[Android Apps and Games] flex1981:
Working pretty good here on Sony Xperia Z1 Android 4.4.4 (stock rom 14.4.A.0.157). Thanks for all your efforts with this!

Dualshock 3 is supported natively on the Z1 and this works great on both usb and bluetooth without root which is great!

Dualshock 4 the mappings are messed up natively via usb still on both version 0.7 and 0.73. I am unable to pair the ds4 via bluetooth on the Z1 it just hangs on pairing... However if I am rooted and using sixaxis controller app the ds4 works perfectly via native gamepad support mode except I have to swap a couple of buttons around e.g X and Square but otherwise this solution is pretty much 100% except for the touchpad. No lag at all! I wouldn't be surprised if people are not setting up the sixaxis controller app correctly that are experiencing this.

I noticed the Vendor_054c_Product_05c4.kl keymap is missing from my device and I download one from another thread and got further with DS4 connected via USB but the button mappings are still off e.g. L2 and R2 not working although I think this did get the right analog stick working.

Hoping the full native DS4 support can be resolved fully though and happy to help out with any testing if needed.

I'm going to attempt using the Vendor_054c_Product_05c4.kl keymap file from my brothers Z3 tomorrow to see if the DS4 will work with the correct mappings via USB as i would like to remove root from my device due to apps I need for work that are blocked when run on a rooted device. Will let you know how I get on.

Slightly ridiculous I have to do this considering its already a Sony Xperia device but only the Z2 and Z3 are supported officially by Sony! Hey Ho :)
[Android Apps and Games] Xboarder7:
I put a copy of the Vendor_054c_Product_05c4.kl keymap file in my keylayout folder and tried a straight bluetooth pairing with my DS4, but it just saying "Pairing" for minutes and then "Fails to Communicate". There's clearly something else going on here in order for us to simply pair the controller and the phone.

While the DS4 is plugged in via USB OTG I find some buttons, the D-pad, and the left joystick work on the homescreen, but stop working completely when I open the remote play app.
[Android Apps and Games] tiruri:
This allow to pair the DS4 via Remote Play directly?

I tried it but I get always infinite "Associating..."
[Android Apps and Games] basteagow:
This mod allows you to use the DS4 without the Sixaxis Controller app, either wirelessly via standard Bluetooth pairing (as you would pair a keyboard or headset in system settings), or wired with a USB On-The-Go adapter. The controller registration screen in the Remote Play app is only for natively supported devices (namely Z2 and Z3), and this mod doesn't change that.
[Android Apps and Games] tiruri:
Thank you very much. I just tried this way, paired in system settings but I have lag in every button I push on DS4. I don't know if this info maybe can help something for development of this mod. I push one time "right button" and on PS4 the menu goes to the right 3 or 4 elements. I'm trying on local network with 100% WiFi signal. With Sixaxis Controller works better.

Nexus 5 with 5.0.1, fresh install.

Bye and thank you.
[Android Apps and Games] basteagow:
Is it perfect with the Sixaxis Controller app, or still laggy but not as much? If your Wi-Fi network is 2.4 GHz, it may also be a Bluetooth interference problem. To see if that's the case, try with USB OTG or a 5 GHz network.

I have this working pretty well over Bluetooth, but only on a 5 GHz Wi-Fi network. When I tried at a friend's house on a 2.4 GHz network, Bluetooth interferece made the connection unusable.
[Android Apps and Games] tiruri:
With Sixaxis Controller app works much better so I don't know if it's for interference problem with my 2.4GHz network. I will be trying new updates for this mod to see if it works better. And, if I can, I will try the actual version with a Note 3.

Thank you =)
[Android Apps and Games] nicjo814:
Can someone with lag try the following steps and see if it reduces the problem:

Connect the PS4 with wire to your network

Connect your Android device to a 5GHz router/AP in your network

Pair your DS4 controller with the Sixaxis controller app

Make sure that [Gamepad Settings]->[Analog Poll Rate] is set to "1" in the Sixaxis controller app

Completetly disable (turn off) location services in your Android device

Use beta4 to connect to your PS4

With this setup I don't experience any lag, but then I'm not 100% sure how everyone defines "lag" in this context :)
[Android Apps and Games] jmhc:
Just tried this and it works perfectly for me.
[Android Apps and Games] nicjo814:
Did you suffer from lag before?
[Android Apps and Games] jmhc:
Yeah I did.

My Poll Rate was originally set to 3 and I had location services on.
[Android Apps and Games] boxkillor:
Have u lowered it? Which lbs habe u turned off? Just asking for advise, working here too with sixaxis - but i have lowered in e.g. destiny my sensitivity to 2 since "it feels like it would lag". I cant describe it, but sometimes when i move the stick it goes too much or too less. But surely never straight to the point, where i wanted to. (That sounded kind of kinky right ;D?)

Btw. the advise to remap on sixaxis the buttons was wonderfull.
[Android Apps and Games] MDxLato:
+1 here. Works perfectly on Note 4 both local network, and remotely.
[Android Apps and Games] Xboarder7:
Well this is the smoothest near-lag-free experience yet! Works great on my Galaxy S3 i9300! Turning down that polling rate seems to have a great effect on lag reduction. Cheers!
[Android Apps and Games] boxkillor:
Yeah, it is really good now. Thx 4 the advise.

Okay now im on 5ghz, note 3, 4.4.2, pollrate 1. It still doesnt feel as fluent as playing on my vita remote play (2.4ghz - but sound and video sometimes get async - already found out that its 2,4ghz which sucks in this)

[MENTION=4183459]sir_earl[/MENTION]: from the technical view, is it possible to achieve the same "fluent" experience on mobile, like playing on the vita? Thx in advance.

Greets
[Android Apps and Games] turnerm05:
I think this depends heavily on the hardware of the device you are streaming to. When I stream to my Nvidia Shield it is flawless. Streaming to my Nexus 7 (2013) is good but not as good as the shield.
[Android Apps and Games] GunbusterZero:
Just a quick question concerning beta4 I just installed on my Shield Tablet.

I am on a rooted Shield and I use Sixaxis Controller to pair my DS4 at the moment. Set to native Controller. Currently connected over usb.

I got the beta4 connected to my PS4 and I got everything working but the D-PAD. Could this be a mistake on my end or a bug ?

EDIT - I think I got it, I stopped Sixaxis Controller and tried pairing again, but its pretty laggy

EDIT 2 - Just tried out the Shield Controller, works really really well, only slightly laggy, Im pretty happy :)
[Android Apps and Games] MyPeople:
Am I the only one who really struggle to connect the ds4 ti the phone with sixaxis controller app?

I have to try at least 10 times to get it connected one.... :(

I have a galaxy note 4. But the same happened with my galaxy note 2

Is the Shield controller working with any android phone?
[Android Apps and Games] GunbusterZero:
Yeah, connecting the DS4 under Lollipop with Sixaxis Controller seems to have some problems, that was my impression too.

I don't think the Shield Controller works with anything else at the moment. And it probably won't till someone figures out something to connect it to another Android device. Its Wi-fi Direct connected.
[Android Apps and Games] MyPeople:
But I'm still using kit kat. And I have problems to connect it with 2 different phones.... maybe using an usb on the go cable is the best solution...

Thanks for the info about the Shield Controller
[Android Apps and Games] flex1981:
Ok so I tried the Vendor_054c_Product_05c4.kl file from my brothers Xperia Z3 on my Xperia Z1 and it didn't seem to make much difference connected via usb otg cable which is a shame :( it would of been nice to get the ds4 working correctly without root via usb.

I have discovered that the beta4 / 0.73 apk breaks the dualshock 3 right analog stick when connected via bluetooth on my Xperia Z1 (still works via usb though). Anyone else experience this on other devices with the ds3? if so is there any way of fixing this [MENTION=4183459]sir_earl[/MENTION] ? It all works great on the beta1 / 0.70 apk for the ds3 though.

The DS4 is working almost perfectly for me on beta4 / 0.73 via sixaxis app via bluetooth except i still have to swap the buttons around still (X and Square etc) although this was mentioned as a fix on this version. The share button is now working though which is great. Different story via usb though as right analog stick, dpad and triggers are not mapped correctly.

Really happy to have this working and I have more than one way of playing GTAV and COD AW on the go thanks to this :good:

Please let me know if I can be of any use with testing to get these last few mapping issues resolved!
[Android Apps and Games] cobra68:
it works just lags

I have an gs4 and it work except its pretty laggy and the ps button doesnt work on controller. My phone has never been root. I downloaded beta 4. Also im using bt
[Android Apps and Games] tomgreendennis:
Fire TV Problems

Hey :).

I already posted here and mentioned that the following Buttons dont work when i use the app with a non rooted fire tv(the new beta did not change this):

I dont use the Sisaxis app.

L2+R2

right stick

This buttons dont work with xbox360 controller+DS4.

Kind regards

Dennis