Make a function that handles the mouse events for everything since those are very similar.
This commit is contained in:
parent
d99d9a68c8
commit
cd02507023
2 changed files with 30 additions and 39 deletions
|
@ -33,6 +33,7 @@ namespace gui {
|
|||
void LOOT_GRAB(Event ev, std::any data);
|
||||
void INV_GRAB(Event ev, std::any data);
|
||||
void END(Event ev);
|
||||
void handle_mouse(Event ev, guecs::UI& gui);
|
||||
void mouse_action(bool hover);
|
||||
sf::Vector2f mouse_position();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue