// $Id$
//
-// SuperTux - A Jump'n Run
-// Copyright (C) 2004 Ricardo Cruz <rick2@aeiou.pt>
+// SuperTux
+// Copyright (C) 2006 Matthias Braun <matze@braunis.de>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
#include <config.h>
+#include <SDL_events.h>
+#include <SDL_mouse.h>
+
#include "video/drawing_context.hpp"
#include "gui/mousecursor.hpp"
#include "main.hpp"
MouseCursor::MouseCursor(std::string cursor_file) : mid_x(0), mid_y(0)
{
cursor = new Surface(cursor_file);
-
- cur_state = MC_NORMAL;
- SDL_ShowCursor(SDL_DISABLE);
+ cur_state = MC_NORMAL;
}
MouseCursor::~MouseCursor()
{
delete cursor;
-
- SDL_ShowCursor(SDL_ENABLE);
}
int MouseCursor::state()