Jump to content


Photo

Menu, back, options, ..Android keys


  • Please log in to reply
7 replies to this topic

#1 WWAZman

WWAZman

    GMC Member

  • GMC Member
  • 708 posts
  • Version:GM:Studio

Posted 02 July 2012 - 06:42 PM

hey all..
I'd like to add some ingame options - something you can do once the game has started instead of just at a title screen.

I know we have Backspace for Back, but I don't know what the others are?

Back - Backspace

Home - ?

Menu - ?

Search - ?

this would be for pre-Android 4.0 Ice Cream Sandwich. (How do people access Menu with ICS 4.0 and above? My phone is modified that runs ICS 4.0.4 but it has all 4 buttons) And could we have this stickied somewhere so I can stop asking stupid questions? :D I did use the search feature and did not find it.
  • 0

#2 scurvycapn

scurvycapn

    GMC Member

  • GMC Member
  • 171 posts
  • Version:GM:Studio

Posted 02 July 2012 - 07:59 PM

I will probably sound like a broken record as I make these comments in any thread related to using the menu button.

Google's design guidelines have been telling developers to move away from the menu button for a while now. On Honeycomb and ICS, Android will create a button that's not normally visible to be used as the menu button. This isn't a big issue on tablets or phones like the Galaxy Nexus that only use software buttons and dedicate a taskbar to displaying these buttons. However, on an ICS device with hardware buttons, the only way to display a software button is to use up screen real estate to display a menu button. This means wasting a portion of the screen that could be used to display your game or any other software. I could stay away from using the menu button in a game as it will just use up space (click here for examples of what happens.) Drawing your own button in the game itself would be the proper solution.

The search button itself was never actually a standard across the board. Some phones have one, some don't. If an aspect of your game is tied to the search button, there will be people out there that are just out of luck. Neither Honeycomb nor ICS display a software search button (unless some phone manufacturer decided to cook one up themselves), and some Android 2.X devices don't have search buttons. The birth of the actionbar has removed the need for these buttons in standard applications as it can provide menu/search/history/etc. capabilities.
  • 0

#3 cotycrg

cotycrg

    GMC Member

  • GMC Member
  • 851 posts
  • Version:GM:Studio

Posted 03 July 2012 - 02:36 AM

I'm not 100% sure, but I think ord("M") would get the menu, and ord("H") would get the home button.

Might be entirely wrong. Someone will need to confirm.
  • 0

#4 japes00

japes00

    GMC Member

  • GMC Member
  • 48 posts
  • Version:GM:Studio

Posted 03 July 2012 - 10:19 AM

I'm 100% sure the menu is ord("M") as i have used it.
  • 0

#5 WWAZman

WWAZman

    GMC Member

  • GMC Member
  • 708 posts
  • Version:GM:Studio

Posted 03 July 2012 - 04:03 PM

I'm 100% sure the menu is ord("M") as i have used it.


Ord M? where the heck is that?
  • 0

#6 japes00

japes00

    GMC Member

  • GMC Member
  • 48 posts
  • Version:GM:Studio

Posted 03 July 2012 - 10:00 PM

I'm not even sure how to answer that...
Nor what you are asking?
You haven't used ord()? or do you use the key press event?

Anyways if you was using code it would be something like this...
if keyboard_check_pressed(ord('M'))
// then your code of cause...
But which ever you use M is Menu... :P
Hope that makes sense.
  • 0

#7 cotycrg

cotycrg

    GMC Member

  • GMC Member
  • 851 posts
  • Version:GM:Studio

Posted 03 July 2012 - 10:17 PM


I'm 100% sure the menu is ord("M") as i have used it.


Ord M? where the heck is that?

I..what? ord() is for getting specific.. I don't even know how to word that how do you not know?

ord("A") would return true if the button A was being pressed, and so on. If the button M is being pressed, that counts as the android button Menu, also. Just like how vk_back is the back button, but also backspace on a keyboard.
  • 0

#8 WWAZman

WWAZman

    GMC Member

  • GMC Member
  • 708 posts
  • Version:GM:Studio

Posted 05 July 2012 - 04:21 PM

I have always used the keypress buttons, never ( or hardly ever) for code, so no, I have no way of knowing what javacode or whatever is for droid phones, so thank you for your patience with me.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users