Fix the mouse so that it's discrete and one click means on action.
This commit is contained in:
parent
b43553a563
commit
4b333c6684
4 changed files with 16 additions and 18 deletions
3
main.cpp
3
main.cpp
|
@ -14,13 +14,12 @@ int main() {
|
|||
|| main.in_state(gui::State::MAPPING)
|
||||
|| main.in_state(gui::State::IN_COMBAT))
|
||||
{
|
||||
main.keyboard();
|
||||
main.keyboard_mouse();
|
||||
} else{
|
||||
main.event(gui::Event::TICK);
|
||||
}
|
||||
|
||||
main.handle_world_events();
|
||||
main.mouse();
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue