diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2017-11-07 13:50:52 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2017-11-07 13:52:04 +0100 |
commit | d0be87d32929c42502fb842aa2b0ab0233313b93 (patch) | |
tree | c88b88f63d08cbeaec100eff876676f60ddf78ba /src/interface.cpp | |
parent | e28a62894f368cccc64932fe83c91f32d7cb7288 (diff) |
Refactoring, introduce text.cpp, closer to an actual game.
Diffstat (limited to 'src/interface.cpp')
-rw-r--r-- | src/interface.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interface.cpp b/src/interface.cpp index d6137fd..11e297e 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -59,6 +59,10 @@ void state_t::tick(void) select.rect[1] = wmouse; break; + case sf::Mouse::Button::Right: + game->command(wmouse); + break; + case sf::Mouse::Button::Middle: camera.panning = true; camera.pan_ref = wmouse; |