| 221 | */ |
| 222 | template<class U> |
| 223 | void BindAction(const std::string& name, IInputListener* thisptr, void(U::* f)(), ActionState type){ |
| 224 | ActionCallback action(thisptr,f,type); |
| 225 | actionMappings[name].push_back(action); |
| 226 | thisptr->OnRegister(this); |
| 227 | } |
| 228 | |
| 229 | /** |
| 230 | Bind a function to an Axis mapping |