Esempio n. 1
0
        public static bool GetTouchButtonUp(TouchButtonType type)
        {
            int keyCode = mJavaObject.Call <int>("getButtonUp");

            if (((int)type & keyCode) > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Returns the state of a given touch button type.
 /// </summary>
 public static ButtonState GetButtonState(TouchButtonType buttonType)
 {
     return(buttonState[(int)buttonType]);
 }