YAPOG  0.0.1
Yet Another Pokemon Online Game
GameInputManager.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_GAMEINPUTMANAGER_HPP
2 # define YAPOG_GAMEINPUTMANAGER_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 # include "YAPOG/Collection/Map.hpp"
7 
8 namespace yap
9 {
11  {
13 
14  public:
15 
16  static GameInputManager& Instance ();
17 
18  void BeginUpdate ();
19  void Update (const GuiEvent& guiEvent);
20  void EndUpdate ();
21 
22  void AddGameInput (GameInput* gameInput);
23  void RemoveGameInput (GameInput* gameInput);
24 
25  bool GameInputIsActive (
26  GameInputType gameInputType,
27  const GuiEvent& guiEvent) const;
28  bool GameInputIsActivated (
29  GameInputType gameInputType,
30  const GuiEvent& guiEvent) const;
31  bool GameInputIsDeactivated (
32  GameInputType gameInputType,
33  const GuiEvent& guiEvent) const;
34 
35  private:
36 
38  ~GameInputManager ();
39 
41  };
42 } // namespace yap
43 
44 #endif // YAPOG_GAMEINPUTMANAGER_HPP