yashsingh1/xdaforums huggingface dataset:
[Android General] Guru Zeb:
ShadowGun Sixaxis Mapping

Dunno if this has been posted before or not? If it has i apologise.

Found this: :cool:

ht*tp://forums.androidcentral.com/sprint-photon/129411-ps3-controller-setup-shadowgun-photon-tested-only.html

(remove the "*")

Some guy over at Androidcentral.com bruteforced the keyboard controls for awesome looking, but shafted by poor touch controls, Android games tech flagship, ShadowGun!!!!

Sure i tried all the hardware keys on my HTC Desire Z's QWERTY and got no response, maybe i missed something?!?! :rolleyes:

Oh well i have tested them with my Sixaxis Pad and they genuinely work with a few minor idiosyncrasies, like the base dPad controls the guy describes being -90 degrees with my phone in landscape (easily fixed by a key config edit).

Look needs minor sensitivity tweak too. But they work !!!!!!!!!

God i love SixAxis on my Android sooooo much its kinda unnatural :eek:

I don't even own an actual PS3 Console, just own iPhone huggers when i slide out the SixAxis pad and fire up UAE4Droid or FPSE :cool:

Hope this helps others

Zeb
[Android General] sir_earl:
For Shadowgun I use the key mappings for everything but movement and aiming. For those I set up a simple touch profile with both the analog sticks mapped. The trick with Shadowgun is that the fire button needs to be mapped as a keyboard key, otherwise you can't shoot and aim at the same time.
[Android General] yp261:
there is no problem with connecting, but i cant use touch emulation :c
[Android General] Guru Zeb:
Right thanks i'll try that as i do seem to get some unaccountable 'control point hangs' at times. Everything is fine i press fire and the whole game slows for 1/2 sec then my character fires.

Only just got the 0.5.2 update which am delighted to say probably solves most of the issues I whined about here

ht*tp://xdaforums.com/showthread.php?t=1491481

Nice one sixaxis!!!!!, wish the games devs would get their fingers out a little bit more though.
[Android General] sir_earl:
Ah right. I missed that amidst all the FIXME warnings. Can you please post the output from running the following commands in a terminal:

su

getevent -v 36

Once running, touch the screen with several fingers, then kill the process (Ctrl-C) and send me all the output.

Regards,

Earl
[Android General] coreyjohnson711:
I could use some help with this.. I am able to map the right analogue stick as the c-buttons, but to do so I have to check bypass IME in sixaxis and not use the ps3 controller as a gamepad. When I then disconnect and close six axis controller, I can't use swype or the android keyboard unless I reboot. Any help guys?
[Android General] sir_earl:
The latest 0.5.3 update allows you to disable the analog stick axes under Gamepad Settings->Edit Mappings. This allows the stick to fall back to keyboard emulation.

Now that I finally have a device with ICS running, I can confirm that the 'Bypass IME' option seems to kill the on-screen keyboard until a reboot. You shouldn't need to activate this option for most games, so you should leave it off for now, and instead use the 'Change IME' method. Needless to say, I'm working on a fix for this now!
[Android General] irishtexmex:
Sounds fantastic! You Sir (earl), are quite the fantastic gentleman!
[Android General] oakgrove:
Is there any way to make it work with a HTC Flyer yet?

Already have it working with my sgs2..

Sendt fra min GT-I9100 med Tapatalk
[Android General] khairevishal:
Are there any software for using ps3 controller on pc?
[Android General] Guru Zeb:
Try MotioninJoy http://www.motioninjoy.com/

It does everything you could want from a PC based sixaxis

driver, inc functional accelerometers, cable support in case

your PC is non BlueTooth.

Hope this helps :D

OH yeah forgot to say .......... watch it if you try to use motioninjoy to set the BT address on your pad for pairing with sixaxis

as when i 1st moved from my old HTC Touch Pro II winmo 6.5. Used to use a ps3 pad on winmo6.5 too i was using cobalt controller as BT driver i had been using motioninjoy for BT address change on my pad. Worked fine. But when i 1st tried using my pad with sixaxis on Android pairing kept failing, in fact every time

i tried to pair my pad to sixaxis the address got mysteriously wiped and pairing failed.

Until i realized sixaxis didn't like something about addressed served by motioninjoy, yeah i know it sounds weird/crazy but i did quite a bit of testing

and as soon as i used sixaxis pair to set my BT address, everything work perfectly.

Just something to be aware of.
[Android General] Larry94:
Fixed my problem :-) The latest version seems to have an odd problem with the L1 button and touch profiles. Sometimes when you press it and release, the touch event is still going even though the button has been released.
[Android General] Guru Zeb:
Minor suggestion for next update

One thing that i noticed since the touch emulation (Which is sheer genius by the way :D ) came onstream.

It is only a minor thing, but the touch emulation page uses different handset button conventions than the keyboard mapping.

Specifically in keyboard mapping hitting the 'Back' key does not result in the loss of an unsaved config. But do the same thing in touch config and you just lost your config unless you saved it previously.

I have had to restart a few due to accidentally pressing the 'back' key usually when i intended to hit 'menu' and didn't pay enough attention.

Its pretty easy to do since you have to use 'menu' so much to add and mod buttons.

Dunno maybe its possible to make a minor alteration maybe its more hassle than its worth ........ i'll leave it in your capable hands m8.

Gotta say you are really pushing this project waaaaaaaaaaaaay beyond anything i thought reasonable to expect. Setting a very high benchmark for mobile games controller software. I was delighted with the addition of keymapping profiles, when you introduced touch emulation i was like 'OMFG .......... NO F***** WAY ?!?!?!?!' with my jaw on my desk.

As i had just started to get seriously irritated by how many games devs don't seem to think past the bulk sales and just include a set of keyboard commands as standard ......... then BAM!!! 2 weeks later you dropped touch emulation on us lucky suckers :D

HUGE thanks you are about 40% of my entire android experience. With Miui and My Desire Z both coming in with 30% each :D

Seriously THANKS !!!!!!!!!!!!
[Android General] sketch2k278:
it freezes then resets on my LG Thrill on Gingerbread 2.3.5 but it works on Cyanogen Rom if I was to install it

I would love to play it on GB since I can play some of my games in 3d..... are there any previous versions that work on GB??
[Android General] phamleader:
thx it's great
[Android General] BT73:
All working well only Firering NOT....

Hi,

I have set up the PS3 controller with the sixaxis controller but fire ing will not work... with the L1-L2 - R1-R2 keys. Is there any solution for this problem....

Thanks

Update:

Fire button is not DPAD_CENTR but KEY 8

Everything works now fine...
[Android General] -MB-:
Silly question maybe, but would it be possible to implement the sixaxis tools touch emulation to something like a keyboard attached via usb as well?

because on my tablet the sixaxis isnt supported due to lack of bluetooth.
[Android General] Aganar:
A little disappointed that this app requires root. That's no problem on my Touchpad, since it's running CM9, but I'm hesitant to root my Galaxy SII at the moment since Sprint is so close to sending out their ICS update.

Works great on my Touchpad, though.
[Android General] sir_earl:
I was wondering when someone would ping me for that! The paradigm for the touch profiles is different from the keyboard profiles too - touch profiles must be saved and activated, whereas keyboard profiles apply instantly and don't need to be saved. Rather than change the approach entirely, I'll just make the last configuration of touch buttons save and restore when you open the profile editor again.
[Android General] sir_earl:
I have yet to get the app working with the proprietary Texas Instruments bluetooth stack (which the LG Thrill is using). This is definitely on my todo list, but it might be a while before I figure this one out (if it's even possible). The biggest challenge is not having such a device to test with myself.
[Android General] sir_earl:
You could check out USB/BT Joystick Center and their new Joy2Touch add-on. I don't think it's as stable or configurable as my implementation, but it sounds like it's easier to set up. In my opinion it's very over-priced, but if you've got the cash to lay down, then it might be what you're after.

I'm also working on an app to be used in conjunction with Bluez-IME that will bring touch profiles to all the devices it supports (also one for the native gamepad feature). I'll probably sell each of these for $1.
[Android General] sir_earl:
Yes it's unfortunate, but given the number of features in the app that require root, I've resigned to the fact that the app is for power users.
[Android General] -MB-:
Tried that one, doesn't work on my Yarvik tablet.
[Android General] -MB-:
Bought a Xiron Ultimate 10, which is basically a Newsmy K97, upgraded it to a rooted ICS Newsmy rom, but for some reason Sixaxis doesn't work properly.

Compatibility checker says it's compatible, I can pair fine too apart from the fact the bluetooth adrees keeps changing every time.

But none of the touch profiles I make work, enabling it basically renders my tablet non controllable, because touchscreen itself ceases to function completely when I enable sixaxis.

I have to reset it to return to normal.

Any possible solutions?
[Android General] ear0wax:
Just wanted to say that I love this, ever sense my n900 broke and I went back to android I missed sixaxis support, I bought this app pretty much the day it came out, even tho my streak didnt have a working bluez stack. Im using a Atrix and Prime now and love it.

A few suggestions, add a built in Xperia play control emulation setting, something like a preset profile, also A place to upload community touch mappings, organized by standard screen sizes
[Android General] xxKamikazexx:
That is a great idea
[Android General] Guru Zeb:
Can't see the point of the Experia preset, (other than just to support glacially lazy Experia owners) :p

#1 its pretty easy to setup your own Experia profile with tiny amount of effort, i estimate less than 5mins to work out and setup.

#2 why shouldn't everyone else's pet handset get custom presets?? ie Desire Z HW keyboard or opti D-pad ........ because that's why the config system exists.

The community portal for mapping seems a much more functional and practical idea. IMHO the existence of such a site would render the Experia preset idea redundant, as basic profiles would be easily available for new sixaxis users.

+1 to the community profiles site

(though several threads still exist to swap sixaxis profiles)
[Android General] DNA89:
Does it work with a HTC DHD? I have the HDRev. Rom installed.
[Android General] Spooniator:
I think so.
[Android General] DNA89:
I just purchased it and gave it a try. I used this tutorial:

www[/url][dot]teamandroid[dot]com/2011/08/09/how-to-connect-ps3-dualshock-3-controller-to-android-phone-or-tablet/

But only get errors like "Failed to configure Bluetooth" and "open(/sys/module/board_spade/parameters/bdaddr) failed: No such file or directory(2)Can't set line discipline".

And in the end the app just disconnects.
[Android General] Guru Zeb:
Am pretty sure Desire HD should work ok not very different from my Desire Z really, sixaxis works flawlessly for me. Could be your ROM, as stock HTC ROMS are well known for being incompatible with sixaxis. Bad BT stack :(

Definite sixaxis friendly ROM's like Miui or Cyanogen, may help.

Did you start with BT turned off??

How sure are you, you have a GENUINE Sony PS3 pad ??

unless it was bought with a PS3 at a store, seeing Sony printed on is no guarantee of authenticity.

Wait for earl .......
[Android General] DNA89:
No i am pretty sure my DS3 is genuine. It might be the ROM, as i said i am using Mike's Android Revolution HD ROM. Maybe his ROM doesn't support "sixaxis controller"? Could someone ask him to add support in a future update? I would do it myself but i don't have enough rights to write in his thread.
[Android General] patmw123:
This looks really awesome.
[Android General] sir_earl:
Yes potentially for both of those issues. I've made some changes to the bluetooth connection method that should make many (all?) devices show the correct bluetooth address, rather than the generic one. Some additional devices should also be supported (Samsung Exhibit II for one). However, if your phones actual bluetooth address is changing (under About Phone), it will probably continue to do so until the rom you're using is fixed.

I also found a bug with the touch screen configuration that should fix the lock up you're experiencing.
[Android General] sir_earl:
The compatibility checker app exists for this purpose. There was no need to purchase the app before buying it.

There has been an interesting development with HTC devices recently. XxXPachaXxX, an XDA developer that works on roms for HTC devices contacted me recently with news that he has found the required changes to the kernel to make the app work on stock based roms. I believe he has the app working with the Desire HD and HTC HD2. He will also be sharing these changes with the rest of the development community, so we can probably expect the changes to trickle through to many more custom roms soon. While this is not the ultimate solution I was hoping for (stock kernel and stock rooted rom support), it's still great news!
[Android General] sir_earl:
Just to clarify one point. The only roms previously known to work with HTC devices are AOSP based - that means MIUI and CyanogenMod. If these AOSP roms have functional bluetooth, then the app will always work with them. The stock based (Sense) roms do not work at all, as far as I'm aware (although this will change soon - see my previous post).
[Android General] DNA89:
I used the compatibility checker before purchasing the app! The reason I purchased it was to support you, as I think that your app is a great idea and in the hope of a future update that enables all DHD's to work with this app. Can't wait for Pacha to release his app or to help the other devs to include it in their custom roms!
[Android General] sir_earl:
Attached is the new version of the compatibility checker with the changes to the bluetooth connection I mentioned earlier. I'd appreciate as much feedback as I can get to make sure the app is still functioning on all previously supported devices.

Things I'm most interested in feedback on are:

- Only those devices that are using connection type 2 (type 1 should be unaffected)

- Is it still working on Samsung Galaxy S2

- Is your bluetooth address correct (i.e. Does it match the one shown under 'About Phone')?

- Can you still connect your controller (be sure to re-pair it with the new bluetooth address if it has changed)?

- Any new devices working that didn't previously? (I don't expect any HTC to work, but worth a shot if you've got nothing better to do)

Thanks guys!
[Android General] sir_earl:
In that case, thank you kindly!
[Android General] -MB-:
As usual, sixaxis controller connects fine, everythign works as expected, looks liek it just doesn't liek the touchscreen controller in this tablet.
[Android General] sir_earl:
As I mentioned in the other post, this should be fixed in the next release of the main app.

P.S. If you PM me your email address, I'll send you a test version.
[Android General] -MB-:
Looks liek i totally read over that snippet. Sorry.

Tested it, at least the touch functions withotu freezes, but seems it doesn't properly map the buttons, R2 is seen as L1 and L1 as R2 etc and not many buttons work at all.
[Android General] sir_earl:
Can you try installing and running 'Touch Test' from the market, then pressing buttons on the controller and comparing the touch positions to the profile you created? Screenshots will be useful.
[Android General] -MB-:
Looks like I found what was wrong, On my previous tablet I could set the buttons as they were in Portrait mode, but for some reason it doesn't work on this tablet< I have to set them in Landscape mode. Now it works 100% perfect!!

Thanks!!
[Android General] sir_earl:
Hmmm... Are you sure? No orientation info is stored with the touch profile. Does the same profile work if you have the device in landscape mode, but up the other way? (Assuming the game allows this, and not all do).
[Android General] -MB-:
The profile I made for portrait doesn't work for landscape. Making a profiel with landscape in mind doesn't work properly either.

It's not a big deal for me, because for the game I use the inverted profile I made works fine.
[Android General] sir_earl:
I suspect this is because your touch screen calibration is rotated by 90 degrees. I will be adding an option to specify an offset rotation, which will also help for some games that lock the phone to portrait, but are actually played in landscape.
[Android General] abo_mara7:
LG Optimus 3D:

Error: Failed to configure bluetooth.
[Android General] Cinaeth:
New version of the compatibility checker works on the Samsung exhibit ii with no issues. Not using a custom ROM, just the rooted original. Can't wait to see an update for the pairing app, our will it work now?
[Android General] sir_earl:
You will still need to wait for the official release of the paid app. I'd still like some more feedback on the new version I posted earlier before I make the release...
[Android General] Cinaeth:
Alright let me know if you need anything from me and the exhibit ii
[Android General] quadracer111:
Using this with a n64 emulator on my galaxy tab 10.1 is awesome!
[Android General] 2blackbar:
So... what's the technical reason why fake ps3 controllers dont work?

Whats different inside about them ? Any chance to get them working ?What genuine ps3 controllers have in common tht fake ones lack?

Will they ever be able to work on android ?

I have one so wanted to ask before i sell it.Thanks :)
[Android General] sir_earl:
My current theory is that the original controller is compliant with the bluetooth specs, and is therefore robust to variations, whereas the fake controllers are probably hard coded to work with just the stack in the PS3 (or at least, contain a subset of full bluetooth functionality). They therefore freak out when things don't go exactly to plan. Not very technical I know, but it seems impossible to find any specific information about them.

I'm still hopeful that something can be done about this, and I'm still playing around with a few ideas, including bypassing the l2cap protocol entirely and talking directly to the controllers via HCI commands.
[Android General] Guru Zeb:
No offence m8 ........ but think about what your saying!!!!

if you think its pretty obvious what the "technical reason" is.

A fake counterfeit Pad does not conform to Sony standards, or to be more accurate 'you have no way of knowing how closely a fake pad conforms to Sony standards'.

Hence you may have one fake pad that works fine, I have one like this it is defo fake but it works perfectly only found out it was fake then i opened it to fix a sticky analogue stick.

You could get another fake pad that will not even pair with a PS3 console !!!!

So basically with fake pads its a dice roll what level of functionality you get and what kind of durability you get.

Really the most important issue is. No matter what a fake/counterfeit Pad is always manufactured with inferior components & constructed without regard to reliability & durability. If you think about it THIS IS the reason for faking items so you can use sub standard parts and manufacturing if you do it to spec there is no point in counterfeiting.

Yeah you can get SOME to work, mine works perfectly with sixaxis control.

Once again its a dice roll which ones work and which don't, if it works ok with your PS3 it will most likely work ok with sixaxis.

My advice is buy sixaxis and try it (its so STUPIDLY cheap) , if it works you got to piss on Sonys gouged profit margins on console accessories. If not buy a 2nd hand pad on ebay.

How to spot fake pads:

Easiest & most reliably is to just open the pad, fakes never have genuine grey plastic Sony batteries, look on youtube plenty of fake vs genuine comparison vids

As far as telling with opening your pad, here is a few things i discovered.

6 screws = Fake pad

No genuine Sony pad has 6 screws on the bottom, the extra one is under the label. But 5 can be fake too, i have a 5 screw fake pad, 6 is defo fake.

Press pair button hard if fake the start button will move a bit as the pcb board underneath flexes.

Press then gently pull sticks up, fake won't move. Genuine Sony will move about 1mm then kind of lock.

fake pad weighs 180g -ish

Genuine Sony weighs 200g -ish

Hope this helps
[Android General] GladiatoRiley:
Hi, any possibility for compatibility with Sense ROMs? (3.6, 4.0 ICS)

Or even just a mod?

Thanks
[Android General] rpalmerin:
Page 91. Last insert by sir_earl
[Android General] sir_earl:
See the thread of interest here. Hopefully if we spread the word, more rom developers will integrate the required changes.
[Android General] chlewior:
exactly, community choice :)
[Android General] frickinjerms:
Has anyone experienced any ghost button presses with sixaxis running? I looked around on Google and read about a similar issue where people would have buttons like triangle and stuff pressed when using the analog sticks while playing ps3 games and stuff, but in my case, I have the right analog off in controller mode and mapped to e f g h (up down left right) for use as c buttons in n64 ;-) and even when not touching the controller whatsoever it will pop up with letters in search as if I used the analog stick to type when not in the emulator and will sometimes activate said buttons mid game haha I dunno if its app or controller, possible insight would be much appreciated... yes I did research before posting ;-) I apologize if I may have overlooked it
[Android General] Stupidest:
Failed to configure bluetooth

hi, im using SGS Plus rooted with doomlords easy rooting kit, i tried this app and it gave me this:

Attempting connection type 1...

Driver Starting...

Touch emulation(Type A): 04790799

Error: Failed to configure bluetooth

Deleting device pipe

Attempting connection type 2...

Driver Starting... Touch emulation(Type A): 04790799

Error: Failed to configure bluetooth

Deleting device pipe

Attempting to close server...

Disconnected :confused:

I got my bluetooth address once though, but it didnt connect that time too.
[Android General] sir_earl:
This has actually recently come to my attention. I'm not sure what circumstances this starts occurring, because it doesn't seem to always occur. I've attempted a fix in the latest version 0.5.4 that I've just released, so let me know if it's still happening for you.
[Android General] sir_earl:
Can you please try the version here - http://xdaforums.com/showpost.php?p=23041100&postcount=913 or try the latest version released on the market today.
[Android General] Stupidest:
ok so i tried the new version, and it gave me this this time:

Attempting connection type 1...

Driver Starting...

Error: Failed to configure bluetooth

Deleting device pipe

Attempting connection type 2...

Driver Starting...

Done setting line discpline<---there's a spelling error

Successfully configured bluetooth

Listening for controllers...

(tried connecting but failed, status bar didn't show bluetooth icon:confused:)

good news is it gave me the correct bluetooth address this time(same number in "about phone")and yes i changed the address for my dualshock sixaxis controller.

btw my firmware version is 2.3.5
[Android General] sir_earl:
This likely means your phone is fine. Are you using an original Sony controller?

P.S. I'll fix that spelling error, though it isn't my code ;)