diff options
author | Nao Pross <naopross@thearcway.org> | 2018-02-12 00:37:24 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2018-02-12 00:37:24 +0100 |
commit | 42b697b363a28fa8b7c7464e828b83f905d953ba (patch) | |
tree | 61ec2f1a25203df83572f2c4f65a59cc63cb5a81 /src/main/cpp | |
parent | Handle WindowResize event and add zoom (diff) | |
download | Subconscious-old-42b697b363a28fa8b7c7464e828b83f905d953ba.tar.gz Subconscious-old-42b697b363a28fa8b7c7464e828b83f905d953ba.zip |
Add more events and fix typos in comments
Diffstat (limited to 'src/main/cpp')
-rw-r--r-- | src/main/cpp/Subconscious.cpp | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/src/main/cpp/Subconscious.cpp b/src/main/cpp/Subconscious.cpp index 8e1bd02..b53a38b 100644 --- a/src/main/cpp/Subconscious.cpp +++ b/src/main/cpp/Subconscious.cpp @@ -14,6 +14,8 @@ Subconscious::Subconscious() { _window.setVerticalSyncEnabled(true); _window.setFramerateLimit(90); + + // TODO currentScene = new MenuScene("main-menu") or something } Subconscious::~Subconscious() @@ -29,12 +31,27 @@ void Subconscious::run() while (_window.pollEvent(event)) { switch (event.type) { /*** Keyboard Events ***/ + case sf::Event::KeyPressed: + break; + + case sf::Event::KeyReleased: + break; + /*** Mouse Events ***/ + case sf::Event::MouseButtonPressed: + break; + + case sf::Event::MouseButtonReleased: + break; + + case sf::Event::MouseMoved: + break; + case sf::Event::MouseWheelScrolled: // my mouse always outputs +/- 1.0000, so the zoom speed - // is by 1/10.0 => .1 - // TODO make this a setting that chan be changed - // (mousewheel sensibility + // is 1/10.0 => .1 + // TODO make this a setting that can be changed + // (mousewheel sensibility) // // std::cout << std::fixed << std::setprecision(3) // << event.mouseWheelScroll.delta << std::endl; |