| 263 | */ |
| 264 | template<typename U> |
| 265 | void UnbindAxis(const std::string& name, IInputListener* thisptr, void(U::* f)(float), float deadZone = AxisCallback::defaultDeadzone){ |
| 266 | AxisCallback axis(thisptr, f, deadZone); |
| 267 | axisMappings[name].remove(axis); |
| 268 | thisptr->OnUnregister(this); |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * Unbind all Action and Axis mappings for a given listener. Listeners automatically invoke this on destruction. |