internal static void MouseUpEvent(MouseButtonKey _key) { mMouseKeysUpPerFrame[(int)_key] = true; mMouseKeysHeld[(int)_key] = false; locker_mMouseKeysDownPerFrame[(int)_key] = false; // Unlock the down key // Register the mouse event to the gui GUI.TackGUI.AddMouseEvent(new GUI.GUIMouseEvent(1, new Vector2f(mMousePositionX, mMousePositionY), _key)); }
internal static void MouseDownEvent(MouseButtonKey _key) { if (!locker_mMouseKeysDownPerFrame[(int)_key]) // if the down key isn't locked { mMouseKeysDownPerFrame[(int)_key] = true; locker_mMouseKeysDownPerFrame[(int)_key] = true; } mMouseKeysHeld[(int)_key] = true; // Register the mouse event to the gui GUI.TackGUI.AddMouseEvent(new GUI.GUIMouseEvent(0, new Vector2f(mMousePositionX, mMousePositionY), _key)); }
public static bool MouseButtonUp(MouseButtonKey _key) { return(mMouseKeysUpPerFrame[(int)_key]); }
public static bool MouseButtonHeld(MouseButtonKey _key) { return(mMouseKeysHeld[(int)_key]); }
public static bool MouseButtonDown(MouseButtonKey _key) { return(mMouseKeysDownPerFrame[(int)_key]); }