Blackcomb  prealpha
Engine-ish
MouseWatcher.h
1 #ifndef BLACKCOMB_MOUSEWATCHER_H
2 #define BLACKCOMB_MOUSEWATCHER_H
3 
4 #include <GLFW/glfw3.h>
5 #include <glm/glm.hpp>
6 
7 namespace blackcomb::base {
8  class Window;
9 }
10 
11 namespace blackcomb::input {
15  class MouseWatcher {
16  public:
17  void update(base::Window& window);
18  glm::vec2 getMouseCoords();
19  static bool shouldWatch;
20  float mouseSensitivity = 0.05f;
21  private:
22  double lastMouseX = 400, lastMouseY = 300;
23  bool mouseUnseen = true;
24  glm::vec2 mouseCoords;
25  };
26 }
27 
28 #endif //BLACKCOMB_MOUSEWATCHER_H
static bool shouldWatch
Should we be watching for mouse input?
Definition: MouseWatcher.h:19
Definition: AppBase.h:9
Keeps track of mouse position and informs other components about the mouse.
Definition: MouseWatcher.h:15
Object-oriented wrapper for GLFW&#39;s window functions.
Definition: Window.h:17
Definition: MouseWatcher.h:11