Changeset 1887 for code/trunk/src/core/input/InputBuffer.h
- Timestamp:
- Oct 6, 2008, 12:31:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/core/input/InputBuffer.h
r1755 r1887 44 44 public: 45 45 BaseInputBufferListenerTuple(bool bListenToAllChanges, bool bOnlySingleInput, 46 bool trueKeyFalseChar, char _char, KeyCode:: Enum key)46 bool trueKeyFalseChar, char _char, KeyCode::ByEnum key) 47 47 : bListenToAllChanges_(bListenToAllChanges), bOnlySingleInput_(bOnlySingleInput), 48 48 trueKeyFalseChar_(trueKeyFalseChar), char_(_char), key_(key) … … 54 54 bool trueKeyFalseChar_; 55 55 char char_; 56 KeyCode:: Enum key_;56 KeyCode::ByEnum key_; 57 57 }; 58 58 … … 62 62 public: 63 63 InputBufferListenerTuple(T* listener, void (T::*function)(), bool bListenToAllChanges, 64 bool bOnlySingleInput, bool trueKeyFalseChar, char _char, KeyCode:: Enum key)64 bool bOnlySingleInput, bool trueKeyFalseChar, char _char, KeyCode::ByEnum key) 65 65 : BaseInputBufferListenerTuple(bListenToAllChanges, bOnlySingleInput, trueKeyFalseChar, _char, key), 66 66 listener_(listener), function_(function) … … 109 109 110 110 template <class T> 111 void registerListener(T* listener, void (T::*function)(), KeyCode:: Enum key)111 void registerListener(T* listener, void (T::*function)(), KeyCode::ByEnum key) 112 112 { 113 113 InputBufferListenerTuple<T>* newTuple = new InputBufferListenerTuple<T>(listener, (void (T::*)())function, false, true, true, '\0', key); … … 115 115 } 116 116 template <class T> 117 void registerListener(T* listener, void (T::*function)() const, KeyCode:: Enum key)117 void registerListener(T* listener, void (T::*function)() const, KeyCode::ByEnum key) 118 118 { 119 119 InputBufferListenerTuple<T>* newTuple = new InputBufferListenerTuple<T>(listener, (void (T::*)())function, false, true, true, '\0', key); … … 178 178 unsigned int cursor_; 179 179 180 KeyCode:: Enum lastKey_;180 KeyCode::ByEnum lastKey_; 181 181 float timeSinceKeyPressed_; 182 182 float timeSinceKeyRepeated_;
Note: See TracChangeset
for help on using the changeset viewer.