mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-07 12:00:02 +00:00
Add a function to get the current cursor state
This commit is contained in:
parent
4732a01a0a
commit
4ffb56b631
@ -206,6 +206,11 @@ void set_dragging(bool drag)
|
||||
}
|
||||
}
|
||||
|
||||
CURSOR_TYPE get()
|
||||
{
|
||||
return current_cursor;
|
||||
}
|
||||
|
||||
void set_focus(bool focus)
|
||||
{
|
||||
have_focus = focus;
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user