Log in or register to post comments

How to a default menu CameraDeviceMenu activated via the menu bu

November 27, 2012 - 1:51am #1

Please help. How to a default menu CameraDeviceMenu activated via the menu button on Android? Or how to convert credit default menu to work through EasyTouch (http://u3d.as/content/hedgehog-team/easy-touch-2-5-solution-for-touchscreen-mouse-and-joystick/2Uo).

How to a default menu CameraDeviceMenu activated via the menu bu

April 30, 2013 - 8:33pm #4

Hi,

Can i use this code in vuforia ?

I want to create a menu in my device to change object in vuforia. Like this : http://www.youtube.com/watch?v=33h6KCsKPys

Thank you

Best Regards

How to a default menu CameraDeviceMenu activated via the menu bu

December 1, 2012 - 2:59am #3

Maybe someone will come in handy, like the menu also disappears by pressing the button "Menu":

public void Update()
{
// If the touch event results from a button press it is ignored.
if (!mButtonPressed)
{
//if running on Android, check for Menu/Home and exit

if (Application.platform == RuntimePlatform.Android)

{

if (Input.GetKeyUp(KeyCode.Menu))

{

if (mMenuToShow == MenuMode.MENU_OFF)
{
// Show menu.
mMenuToShow = MenuMode.MENU_CAMERA_OPTIONS;
}
// If menu is already open.
else
{
// Close menu
mMenuToShow = MenuMode.MENU_OFF;
}

return;

}
}
}
else
{
mButtonPressed = false;
}
}

 

 

How to a default menu CameraDeviceMenu activated via the menu bu

November 27, 2012 - 10:56am #2

If you'd like to present the menu by default, simply set private MenuMode mMenuToShow = MenuMode.MENU_OFF; to whichever menu you want to present.

e.g.

    // Defines which menu to show.
    private enum MenuMode
    {
        MENU_OFF,            // Do not show a menu (default).
        MENU_CAMERA_OPTIONS, // Show camera device options.
        MENU_FOCUS_MODES     // Show focus mode menu.
    }

 

Similarly you can set mMenuToShow by capturing key codes..

 

  1.        //if running on Android, check for Menu/Home and exit
  2.         if (Application.platform == RuntimePlatform.Android)
  3.         {
  4.             if (Input.GetKey(KeyCode.Menu))
  5.             {
  6.                 mMenuToShow = MenuMode.MENU_CAMERA_OPTIONS;
  7.                 return;
  8.             }
  9.         }
Log in or register to post comments