public static bool GetTouchButtonUp(TouchButtonType type) { int keyCode = mJavaObject.Call <int>("getButtonUp"); if (((int)type & keyCode) > 0) { return(true); } else { return(false); } }
/// <summary> /// Returns the state of a given touch button type. /// </summary> public static ButtonState GetButtonState(TouchButtonType buttonType) { return(buttonState[(int)buttonType]); }