i6engine  1.0
InputController.h
Go to the documentation of this file.
1 /*
2  * i6engine
3  * Copyright (2016) Daniel Bonrath, Michael Baer, All rights reserved.
4  *
5  * This file is part of i6engine; i6engine is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
25 #ifndef __I6ENGINE_MODULES_INPUTCONTROLLER_H__
26 #define __I6ENGINE_MODULES_INPUTCONTROLLER_H__
27 
29 
31 
33 
34 namespace i6e {
35 namespace modules {
36 
37  class InputMailbox;
38  class InputManager;
39 
46  public:
51 
52  protected:
57  void OnThreadStart() override;
58 
63  void ShutDown() override;
64 
69  void Tick() override;
70 
71  private:
72  InputMailbox * _mailbox;
73  InputManager * _manager;
74 
78  void Mailbox(const api::GameMessage::Ptr & msg);
79 
83  InputController(const InputController &) = delete;
84 
88  const InputController & operator=(const InputController &) = delete;
89 
91  };
92 
93 } /* namespace modules */
94 } /* namespace i6e */
95 
96 #endif /* __I6ENGINE_MODULES_INPUTCONTROLLER_H__ */
97 
Dispatches all messages received by input subsystem.
Definition: InputMailbox.h:42
#define ISIXE_MODULES_API
Part of the Subsystem that keeps the whole module running.
boost::shared_ptr< Message > Ptr
Definition: Message.h:66
#define ASSERT_THREAD_SAFETY_HEADER
Initializes the event listeners for keyboard and mouse input. Responsible for sending input events ...