Also allow mouse clicks to stop autowalk.
This commit is contained in:
parent
d03abba8e4
commit
1aba26831b
1 changed files with 4 additions and 0 deletions
|
@ -415,6 +415,10 @@ namespace gui {
|
|||
[&](const sf::Event::KeyPressed &) {
|
||||
$autowalking = false;
|
||||
fmt::println("ABORT AUTOWALK");
|
||||
},
|
||||
[&](const sf::Event::MouseButtonPressed &) {
|
||||
$autowalking = false;
|
||||
fmt::println("ABORT AUTOWALK");
|
||||
}
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue