MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / BindAxis

Method BindAxis

include/RavEngine/InputManager.hpp:237–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

TestWorldMethod · 0.80

Calls 2

OnRegisterMethod · 0.80
push_backMethod · 0.45

Tested by 1

TestWorldMethod · 0.64