GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NullInputSource.hpp
Go to the documentation of this file.
1 #ifndef RADIX_NULL_INPUT_SOURCE_HPP
2 #define RADIX_NULL_INPUT_SOURCE_HPP
3 
5 
6 namespace radix {
7 
8 class NullInputSource : public InputSource {
9 public:
10  void processEvents() {}
11 
12  void keyPressed(int, int) {}
13  void keyReleased(int, int) {}
14  bool isKeyDown(int) { return false; }
15  std::string getCharBuffer() { return ""; }
16  void addToBuffer(const std::string&) {}
17  void clearBuffer() {}
19  void clear() {}
20 };
21 
22 } /* namespace radix */
23 
24 #endif /* RADIX_NULL_INPUT_SOURCE_HPP */
Definition: GameController.hpp:7
std::string getCharBuffer()
Definition: NullInputSource.hpp:15
Definition: InputSource.hpp:16
void clearBuffer()
Definition: NullInputSource.hpp:17
Definition: NullInputSource.hpp:8
void keyPressed(int, int)
Definition: NullInputSource.hpp:12
void keyReleased(int, int)
Definition: NullInputSource.hpp:13
void truncateCharBuffer()
Definition: NullInputSource.hpp:18
void clear()
Definition: NullInputSource.hpp:19
void addToBuffer(const std::string &)
Definition: NullInputSource.hpp:16
bool isKeyDown(int)
Definition: NullInputSource.hpp:14
void processEvents()
Definition: NullInputSource.hpp:10