|
Potato Engine
|
Wrapper for input bindings. More...
#include <InputBinding.hpp>
Public Member Functions | |
| template<typename T> | |
| InputBinding (Keycode key, InputType type, std::string name, T *obj, void(T::*callback)()) | |
| Constructs binding with method callback. | |
| InputBinding (Keycode key, InputType type, std::string name, void(*callback)()) | |
| Constructs binding with standalone callback. | |
| const EventDelegate & | GetDelegate () const |
| Gets EventDelegate reference. | |
Public Attributes | |
| std::string | name |
| Keycode | key |
| InputType | type |
Wrapper for input bindings.
Definition at line 10 of file InputBinding.hpp.
|
inline |
Constructs binding with method callback.
| T |
Definition at line 33 of file InputBinding.hpp.
|
inline |
Constructs binding with standalone callback.
| key | Keycode to bind to |
| type | InputType to bind to |
| name | Identifier for binding |
| callback | Function to notify |
Definition at line 47 of file InputBinding.hpp.
|
inline |
| std::string InputBinding::name |
Definition at line 14 of file InputBinding.hpp.
| Keycode InputBinding::key |
Definition at line 20 of file InputBinding.hpp.
| InputType InputBinding::type |
Definition at line 21 of file InputBinding.hpp.