HatchitGame
ht_mouse.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 
19 namespace Hatchit
20 {
21  namespace Game
22  {
23  enum class MouseButton
24  {
25  Left,
26  Middle,
27  Right
28  };
29 
30  class IMouse
31  {
32  public:
33  virtual ~IMouse() { };
34 
35  virtual int VMouseX() = 0;
36  virtual int VMouseY() = 0;
37  virtual int VPreviousMouseX() = 0;
38  virtual int VPreviousMouseY() = 0;
39  virtual int VMouseWheelX() = 0;
40  virtual int VMouseWheelY() = 0;
41  virtual int VDeltaX(int val) = 0;
42  virtual int VDeltaY(int val) = 0;
43  virtual bool VButtonRelease(MouseButton button) = 0;
44  virtual bool VButtonPress(MouseButton button) = 0;
45  virtual bool VSingleButtonPress(MouseButton button) = 0;
46  virtual void VUpdate() = 0;
47  };
48  }
49 }
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_glfwkeyboard.h:21
Definition: ht_mouse.h:30