Using hardware keys in games - LG Optimus G Pro

I recently started playing Critical Strike Portable on my LG OG Pro, and I noticed it's hard to aim and shoot at the same time. My fix for this is to assign the button above the volume buttons (default is camera on PAC-ROM) as the fire key. Question is, how do I do this? I assume I'd have to unpack the APK and edit the configuration file to accept the key as fire. But I'm sure I'd have to throw some device specific mumbo jumbo in there to get it to work properly. Can anyone help me out or point me in the right direction? Thank you!
Sent from my LG-E980 using xda app-developers app

worldextermination said:
I recently started playing Critical Strike Portable on my LG OG Pro, and I noticed it's hard to aim and shoot at the same time. My fix for this is to assign the button above the volume buttons (default is camera on PAC-ROM) as the fire key. Question is, how do I do this? I assume I'd have to unpack the APK and edit the configuration file to accept the key as fire. But I'm sure I'd have to throw some device specific mumbo jumbo in there to get it to work properly. Can anyone help me out or point me in the right direction? Thank you!
Sent from my LG-E980 using xda app-developers app
Click to expand...
Click to collapse
Use a ps3 controller over bluetooth instead, if you have that.

I don't have one, although I do have an Xbox 360, which I believe is bluetooth as well, but that kind of defeats the purpose.

I'm not exactly sure what to change it to but editing the hardware buttons is quite simple. Go to /system/usr/keylayout/gk-keypad-8064.kl and change key 250 to something else. I would assume that changing it to 1 would make it type the number 1 so you might be able to assign fire to that hardware button if the app allows it.
Sent from my Optimus G Pro using XDA Premium 4 mobile app

Sweet! I'll try it as soon as I get home! Though I'm not sure what I would assign it to, since the game uses touch commands. Is there any way I can edit the game's APK to assign the key to fire only while the game is open?
Sent from my LG-E980 using xda app-developers app

worldextermination said:
Sweet! I'll try it as soon as I get home! Though I'm not sure what I would assign it to, since the game uses touch commands. Is there any way I can edit the game's APK to assign the key to fire only while the game is open?
Sent from my LG-E980 using xda app-developers app
Click to expand...
Click to collapse
I'm no sure. Never got into modifying APKs. There IS an app called Game Keyboard (paid) that allows you to assign hardware keys to touch inputs. It's well worth the few bucks. I use it for just about every game / emulator I have as you can make your own custom layouts.
Sent from my Optimus G Pro using XDA Premium 4 mobile app

Related

Using my Epic as a remote...

Think of how awesome this would be...
I have a 55 inch Samsung LED television. SmartTV enabled with AllShare and all that fun stuff. So here is my question...
I want to use my Epic to control my tv. And if it's not possible in the whole sense...how about just for the keyboard function. I'm trying to avoid buying a keyboard so I figure if my phone could serve that function...not only will it be so useful but sooooooo cool!!!
Basically rather than using the remote it came with to type on the Internet or chat or Facebook....I would use my phone to type. Can AllShare be used for any of this? Or does anyone know if this is possible?
I actually think I may have just found my answer in the market....
If anyone has a similar question..."samsung remote" in the market will accomplish all of these requests!!
I already use my epic to control my directv
Sent from my SPH-D700 using Tapatalk
Same app? Is that an easy task?
Quis89 said:
Same app? Is that an easy task?
Click to expand...
Click to collapse
Theres a direct tv app
Sent from my SPH-D700 using Tapatalk
What? I'm SO getting that lol.
MysteryEmotionz said:
Theres a direct tv app
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Is this different than the app by directv? Because I have that app but I don't have an option to use it as a remote. Ill have to do some market searching.
Sent from my SPH-D700 using XDA Premium App
Its on the directtv website. It allows me to control my dvr. (i can tell me dvr to record anything even if I'm not home). I can purchase movies from ppv and cineplus.
Sent from my SPH-D700 using Tapatalk
MysteryEmotionz said:
Its on the directtv website. It allows me to control my dvr. (i can tell me dvr to record anything even if I'm not home). I can purchase movies from ppv and cineplus.
Sent from my SPH-D700 using Tapatalk
Click to expand...
Click to collapse
Oh...I can do that. I'm speaking more of changing channels, volume, using my keyboard in place of my remote, etc. The Samsung Remote app does this. Setting my dvr, ppv and cineplus I can do using the directv app as well.
Sent from my SPH-D700 using XDA Premium App
Awww wish there was a universale remote app! that'd be sweet!
Quis89 said:
Oh...I can do that. I'm speaking more of changing channels, volume, using my keyboard in place of my remote, etc. The Samsung Remote app does this. Setting my dvr, ppv and cineplus I can do using the directv app as well.
Sent from my SPH-D700 using XDA Premium App
Click to expand...
Click to collapse
p3dr0maz said:
What? I'm SO getting that lol.
Click to expand...
Click to collapse
I'm guessing you have Directv , but there is also a Verizon Fios Remote app for Android and IOS.
p3dr0maz said:
Awww wish there was a universale remote app! that'd be sweet!
Click to expand...
Click to collapse
I actually think there is. My brother in law was telling me about an Android App he found which would do all of this. I think he heard it from someone else though, as he didn't have it all hooked up yet, but I do believe he said it was somewhere in the $20 range for the app itself.
If you could use your smartphone as a remote for all that fun stuff...that would be..well..yeah, it's coming, EPIC.
Can you ask your brother in law what is the name of that app.
Sent from my SPH-D700 using XDA App
dito33 said:
Can you ask your brother in law what is the name of that app.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
I did and he mentioned something called "pocketblu" but it only works via bluetooth. Since our phones don't have infrared, they won't work on standard TVs for the most part. He did mention AllShare but didn't get into the details of it.
I know he's looked into this stuff quite a bit, but the above information was through just a few texts. The next time we're together (probably Easter weekend) I'll be sure to have a better discussion with him.

Minecraft Pocket Edition!

Today was the day Minecraft Pocket Edition was released for all Xperia Play devices, and I tried to run it on my Droid Inc2, but it won't use the touch screen, so I had a question/request.
1) Can we use a PS3 Controller (as you can sync it with your Droid now) to play?
2) Is it possible for someone to mod it and have it for non-Play devices?
Also attached is the demo version, so I hope it's not against the rules.
I really wish it worked with our phones... Looks awesome so far. I am pretty sure you will be able to use a PS3 or Wii remote to play it with non-play devices. I don't think its going to be possible to make it work on our phones until its official.
I read that some controls work when using a sixaxis controller
Yeah. You can run around, break and place blocks as well as jump and crouch. Problem thus far has been inability to look around... still playing with sixaxis button mapping.
Sent from my Incredible 2 using XDA App
Any one het blueputdroid working?
Sent from my ADR6350 using XDA Premium App
kingpin003 said:
Yeah. You can run around, break and place blocks as well as jump and crouch. Problem thus far has been inability to look around... still playing with sixaxis button mapping.
Sent from my Incredible 2 using XDA App
Click to expand...
Click to collapse
You were able to break and place blocks? How'd you manage that? I was only able to move around, jump and crouch
In the sixaxis mappings use button_R1 to place and button_L1 to break.
Sent from my Incredible 2 using XDA App
kingpin003 said:
In the sixaxis mappings use button_R1 to place and button_L1 to break.
Sent from my Incredible 2 using XDA App
Click to expand...
Click to collapse
So from Sixaxis Controller's app, set the mapping for R1 and L1 to button_R1 and button_L1 ? Cuz even when doing that I can still only jump crouch and move around..
Not that it should matter but I have them flipped so R1 = Button_L1.
Sent from my Incredible 2 using XDA App
Has anyone figured out how to look around?
I tried every button mapping available in the sixaxis controller app. No can do.
Sent from my Incredible 2 using XDA App
Forgive me for digging up an old thread, but I have a question about the Sixaxis app, and you all seem to be using it with your Dinc2's which to me implies the app works with the phone. I haven't actually bought the app, but I ran the compatibility checker and my phone failed. So I'm a little hesitant to just give it a shot.
Is it a false failure?
Do I need a certain ROM to have comptabitility?
I tried searching for this(Google, and here on xda), but all I ever get are threads about how to do it with an Incredible 1, which apparently involves loading a custom ROM, and giving up the TV out functionality.(Dinc1 owners seemed to dislike that tradeoff) I also read that the incompatibility involves Sense's Bluetooth driver, which is why a custom ROM makes Sixaxis work with the phone.
I am running 2.3.3, and am rooted.
Any help would be greatly appreciated. If starting a new thread is a better option I will do that. I just figured I'd post about it on the only thread that came up when I searched "sixaxis" in the Dinc2 forum.

(VIDEO) Nexus 4 Sixaxis Tutorial

Hey guys I just made this tutorial on Sixaxis. I'm going to continue updating with how to edit keymapping for all the different games like MC4, Dead Trigger, and more.
Sixaxis Tutorial
How To Edit Keyapping On MC4
Sent from my Nexus 4 using xda app-developers app
Will my six axis controller work back with my ps3?is it just a matter of repairing it with the ps3 after I'm done each time or the setting are saved and it's just a one time thing?
Sent from my Nexus 4 using xda app-developers app
Sparta507 said:
Will my six axis controller work back with my ps3?is it just a matter of repairing it with the ps3 after I'm done each time or the setting are saved and it's just a one time thing?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
I'm pretty sure it should still work.
Sent from my ADR6300 using xda app-developers app
Sparta507 said:
Will my six axis controller work back with my ps3?is it just a matter of repairing it with the ps3 after I'm done each time or the setting are saved and it's just a one time thing?
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
You have to re-pair it with the ps3 again by plugging it in.
Lownita said:
You have to re-pair it with the ps3 again by plugging it in.
Click to expand...
Click to collapse
I'm going to have to re-pair it between my Nexus 4 and my tablet every time I switch, won't I?
It makes sense, it's just annoying. Especially because I keep my games in sync using DataSync+.
irishtexmex said:
I'm going to have to re-pair it between my Nexus 4 and my tablet every time I switch, won't I?
It makes sense, it's just annoying. Especially because I keep my games in sync using DataSync+.
Click to expand...
Click to collapse
Yes!
Updated the original post with how to edit the keymapping for Modern Combat 4.
Will non Sony controllers work like the cheaper brands thanks.
Sent from my Nexus 4 using xda app-developers app
I know this thread has been done for like a month but I have an urgent question.
Everytime I try to pair my N4 with m ps3 sixaxis dualshock it says
"
Attempting Connection type 1...
Driver Starting...
Could not start driver. Check that the driver has been given permission to run by the superuser app.
Attempting to close server...
restoring previous bluetooth state...
Disconnected
"
I rooted my phone months ago, I have made the supersu app grant all superuser permissions and still nothing.
Can someone please help me?
nexusguy74 said:
Will non Sony controllers work like the cheaper brands thanks.
Sent from my Nexus 4 using xda app-developers app
Click to expand...
Click to collapse
+1
Sent from my Nexus 4 using xda premium
lol are you chewing gum in the vid?
Ive also been wondering if non sony controllers will work but I dont think they will cause the sony dualshock ones use bluetooth built in to the controller and a lot of the cheap ones I've seen have their own usb reciever over a diff wireless frequency. like a usb you plug into the ps3 to make it wireless. Don't think those will work.
Just wanted to say that Dead Trigger (and some more games like GTA:VC) have native controller support and you don't have to edit the key mapping (but you can do it if you want to change something).
I have setups that fill well to Real Racing 3 and PewPew if anybody is interested.
coalacorey said:
Just wanted to say that Dead Trigger (and some more games like GTA:VC) have native controller support and you don't have to edit the key mapping (but you can do it if you want to change something).
I have setups that fill well to Real Racing 3 and PewPew if anybody is interested.
Click to expand...
Click to collapse
Sent from my Nexus 4 using xda app-developers app
---------- Post added at 06:53 PM ---------- Previous post was at 06:52 PM ----------
coalacorey said:
Just wanted to say that Dead Trigger (and some more games like GTA:VC) have native controller support and you don't have to edit the key mapping (but you can do it if you want to change something).
I have setups that fill well to Real Racing 3 and PewPew if anybody is interested.
Click to expand...
Click to collapse
Can u post pew pew key map please.
Sent from my Nexus 4 using xda app-developers app
sixasis controller problems!!
hey there, ive an into some problems with the sixasis app, ive done all the steps shown in the video and when i press start on the sixasis app it says "driver starting.." and stays like that. i paired the controller on the pc and tried to do it on the nexus 4 it said "no controller found please connect it via usb cable. any1 suggestions???

Onlive desktop

Gentlemen,
I was wondering if anyone. Or could make this app work on our note 2. I saw an article about getting it working on the original note, and it included modifying the build prop to be able to download from play store (or just side load the apk, I guess), and modifying the dpi, both of which I know can be done once rooted.
Any help or suggestions would be appreciated!
Sent from my SPH-L900 using xda premium
tallguywes said:
Gentlemen,
I was wondering if anyone. Or could make this app work on our note 2. I saw an article about getting it working on the original note, and it included modifying the build prop to be able to download from play store (or just side load the apk, I guess), and modifying the dpi, both of which I know can be done once rooted.
Any help or suggestions would be appreciated!
Sent from my SPH-L900 using xda premium
Click to expand...
Click to collapse
Just download OnLive from the PlayStore...? I did and it runs fine (aside from my slow data speeds).
I agree with the above post.
The Android app has touch inputs for some games. If you have the onlive universal controller, than you can play any game that supports gamepads. Keyboard and mouse, maybe hit and miss. Maybe with a blue tooth keyboard and mouse.
What you're talking about, a lot of work that isn't going to give you better experience than what the Android app will give.
That,s on live
That,s onlive he is talking about (onlive desktop) there is a difference
one is for games the other for office use to different apps.
I don't believe the OnLive desktop is available on Android. I haven't seen anything about it being modded for android.
Unfortunately, it's just a miscommunication. There is the OnLive desktop client for the gaming service, and there is a OnLive Desktop service that's an additional fee. It was aimed at more the OSX and iOS people since it's Windows Server environment.
I used onlive desktop for some writing assignment on my transformer infinity so it definitely is for Android
Sent from my SPH-L900 using Tapatalk 2
No there is an Onlive desktop, aimed for tablets (android and ios). I had it working on my old evo view.
I have the apk, but it won't run. It is on the play store (not the version to game on), and it states not available for this version.
Let me dig and find the url for how someone got it working for the original note
Sent from my SPH-L900 using xda premium
Here's the link to how someone got it working on the OG note:
www.thewebisyours.com/how-to-get-onlive-working-for-galaxy-note-windows-7-on-android-phones/
And here's the. To an older apk:
http://forum.xda-developers.com/showthread.php?p=23164470
Sent from my SPH-L900 using xda premium
I adjusted my dpi 240 and downloaded it from the play store. Then used xposed installer app tweaks to set the dpi for onlive to 192. Works fine for me.
sent from my H2Od Note 2
Awesome! I'll try it shortly!
Sent from my SPH-L900 using xda premium

How to Longpress

Maybe stupid question, but I searched these forums and couldn't find an answer. Is there any way to send a longpress using the controller?
Sent from my NookColor using Tapatalk HD
lorddunlow said:
Maybe stupid question, but I searched these forums and couldn't find an answer. Is there any way to send a longpress using the controller?
Sent from my NookColor using Tapatalk HD
Click to expand...
Click to collapse
Not sure what you mean, but holding the O button when something is "blue " does the trick for me.
Sent from my Nexus 7 using xda premium
yes holding the O button down works in most cases but there's no solution for dragging icons, or dragging anything for that matter. The touchpad doesn't have long click. I installed apex launcher and I can't move the shortcuts. I would love some kind of touchpad app I can run on my phone, like I do with my pc. A touchpad server on the ouya and an app as touchpad client on my phone.
mertzi said:
yes holding the O button down works in most cases but there's no solution for dragging icons, or dragging anything for that matter. The touchpad doesn't have long click. I installed apex launcher and I can't move the shortcuts. I would love some kind of touchpad app I can run on my phone, like I do with my pc. A touchpad server on the ouya and an app as touchpad client on my phone.
Click to expand...
Click to collapse
A Bluetooth mouse would would work. An app that simulated a Bluetooth mouse would also work. I don't know of any off the top of my head
Sent from my SCH-I535 using xda premium
mybook4 said:
A Bluetooth mouse would would work. An app that simulated a Bluetooth mouse would also work. I don't know of any off the top of my head
Sent from my SCH-I535 using xda premium
Click to expand...
Click to collapse
doesn't otg work? I haven't tried connecting a mouse yet. But a phone touchpad app is more convenient from the bed. With XBMC i can use yatse on my phone and that is perfect. It might work with MirrorOp but then I need to root the Ouya. I don't even know if that is possible yet, haven't read up.
mertzi said:
doesn't otg work? I haven't tried connecting a mouse yet. But a phone touchpad app is more convenient from the bed. With XBMC i can use yatse on my phone and that is perfect. It might work with MirrorOp but then I need to root the Ouya. I don't even know if that is possible yet, haven't read up.
Click to expand...
Click to collapse
There's a full size USB port that serves as host port (i.e. you can plug in a wireless mouse). The Ouya is rooted. There's another thread that lists the details. I'm working right now to get a more automated one-click root/superuser install/recovery install method going.
Sent from my SCH-I535 using xda premium
mertzi said:
yes holding the O button down works in most cases but there's no solution for dragging icons, or dragging anything for that matter. The touchpad doesn't have long click. I installed apex launcher and I can't move the shortcuts. I would love some kind of touchpad app I can run on my phone, like I do with my pc. A touchpad server on the ouya and an app as touchpad client on my phone.
Click to expand...
Click to collapse
I may know how to long press.
In Nova you can double tap and hold the second tap to move icons. This may work in all apps, I can't recall.
I just bought an active usb extension cable and hub rather than investing in bluetooth devices. I'm hoping that may allow using the hub on the couch rather than on the OUYA.

Categories

Resources