Пример #1
0
        public static bool GetTouchButtonUp(TouchButtonType type)
        {
            int keyCode = mJavaObject.Call <int>("getButtonUp");

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