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

Method BindAction

include/RavEngine/InputManager.hpp:223–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

TestWorldMethod · 0.80

Calls 2

OnRegisterMethod · 0.80
push_backMethod · 0.45

Tested by 1

TestWorldMethod · 0.64