Forums » Android

Is there a list of Android-specific key binds available?

Sep 16, 2011 abortretryfail link
I'm talking about stuff like the "Menu" key "Search" key or the camera, vol +/- buttons. I'd like to bind my camera key to +shoot2, but I'm not sure how to do it.

I bet others would find this useful as well.
Sep 16, 2011 incarnate link
I think you can get them from looking at wgaf.cfg, on a device. That will list the Android Button related binds, at least.
Sep 18, 2011 abortretryfail link
I did that, but the wgaf.cfg on my device doesn't have any of the currently unbound keys listed. I've got "Search" and "Menu" in there, but not any of the others.

Is it even possible to bind the camera or volume buttons?
Sep 18, 2011 draugath link
I'll start working on my plugin to add more configurable buttons to the android hud. From what little I know currently about the existing hud buttons, I'm not sure how easy it is to change the existing button commands. It may be possible to change.the command, but I think the names might be hard coded.
Sep 18, 2011 abortretryfail link
My question was about hardware keys on the phone though.
Sep 19, 2011 incarnate link
All the hardware keys are bound by default. Maybe try renaming your wgaf.cfg and letting the game re-generate?
Sep 21, 2011 abortretryfail link
Tried that, and the camera button isn't bound by default. I finally found out what it was though. 'P' Yeah, that's upper-case P. Bound it to +shoot2 and it works fine. I was hoping the half-press and full-press on the camera button would register as different keys, but it doesn't look like it sees the half-press at all. Oh well.

I can't get it to use the volume up/down buttons, but since they're still serving their original purpose, I assume the OS has control of them.
Sep 21, 2011 incarnate link
Yes, I believe the OS reserves control on Volume. I don't think we had even tried binding the camera button before. Some devices have them, others don't.
Sep 23, 2011 abortretryfail link
Well, so far the keys on the keyboard are straightforward. In case anyone else is wondering, the other hardware buttons on my Motorola Droid are as follows:

Camera: "P"
Search: "Search"
Menu: "Menu"
D-pad middle button: "<cross>"

Interestingly also, tapping on the screen can register as a keypress of sorts: "Touch1"
The rest is basically the same as the PC.