Emergency 20 Dokumentation  4.2.0
GlobalInputHandler.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2018 Promotion Software GmbH
2 
3 
4 //[-------------------------------------------------------]
5 //[ Header guard ]
6 //[-------------------------------------------------------]
7 #pragma once
8 
9 
10 //[-------------------------------------------------------]
11 //[ Includes ]
12 //[-------------------------------------------------------]
13 #include "em5/Export.h"
14 
16 
17 
18 //[-------------------------------------------------------]
19 //[ Forward declarations ]
20 //[-------------------------------------------------------]
21 namespace qsf
22 {
23  class KeyboardEvent;
24 }
25 
26 
27 //[-------------------------------------------------------]
28 //[ Namespace ]
29 //[-------------------------------------------------------]
30 namespace em5
31 {
32 
33 
34  //[-------------------------------------------------------]
35  //[ Classes ]
36  //[-------------------------------------------------------]
42  {
43 
44 
45  //[-------------------------------------------------------]
46  //[ Public methods ]
47  //[-------------------------------------------------------]
48  public:
53  explicit GlobalInputHandler(uint32 id);
54 
59  virtual ~GlobalInputHandler();
60 
65  void update();
66 
67 
68  //[-------------------------------------------------------]
69  //[ Protected virtual qsf::InputListener methods ]
70  //[-------------------------------------------------------]
71  protected:
72  virtual void eventReceived(const qsf::InputEvent& inputEvent, Response& response) override;
73 
74 
75  //[-------------------------------------------------------]
76  //[ Private methods ]
77  //[-------------------------------------------------------]
78  private:
79  void processKeyboardEvent(const qsf::KeyboardEvent& keyboardEvent);
80 
81 
82  };
83 
84 
85 //[-------------------------------------------------------]
86 //[ Namespace ]
87 //[-------------------------------------------------------]
88 } // em5
Definition: ActionPriority.h:13
Input handler base class.
Definition: InputHandler.h:40
unsigned int uint32
Definition: PlatformTypes.h:181
Input event base class.
Definition: InputEvent.h:40
#define EM5_API_EXPORT
Definition: Export.h:28
Definition: PickupPersonByParamedicAction.h:21
EMERGENCY 5 global input handler class.
Definition: GlobalInputHandler.h:41
Keyboard event class.
Definition: KeyboardEvent.h:44
Definition: InputListener.h:51