Add a function to get the current cursor state

This commit is contained in:
Ali El Gariani 2007-04-22 15:30:53 +00:00
parent 4732a01a0a
commit 4ffb56b631
2 changed files with 6 additions and 0 deletions

View File

@ -206,6 +206,11 @@ void set_dragging(bool drag)
}
}
CURSOR_TYPE get()
{
return current_cursor;
}
void set_focus(bool focus)
{
have_focus = focus;

View File

@ -35,6 +35,7 @@ void temporary_use_bw();
void set(CURSOR_TYPE type);
void set_dragging(bool drag);
CURSOR_TYPE get();
void draw(surface screen);
void undraw(surface screen);