| 235 | */ |
| 236 | template<typename U> |
| 237 | void BindAxis(const std::string& name, IInputListener* thisptr, void(U::* f)(float), float deadZone = AxisCallback::defaultDeadzone) { |
| 238 | AxisCallback axis(thisptr, f, deadZone); |
| 239 | axisMappings[name].push_back(axis); |
| 240 | thisptr->OnRegister(this); |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | Bind a function to an Action mapping |