/// <summary> /// Sets mouse cursor's relative position to game-window. /// </summary> /// <param name="x">Relative horizontal position of the cursor.</param> /// <param name="y">Relative vertical position of the cursor.</param> public static void SetPosition(int x, int y) { SDL2_MouseUtil.SetPosition(x, y); }
/// <summary> /// Gets mouse state information that includes position and button /// presses for the provided window /// </summary> /// <returns>Current state of the mouse.</returns> public static MouseState GetState() { return(SDL2_MouseUtil.GetState()); }