MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / processUnbind

Method processUnbind

Engine/source/sim/actionMap.cpp:746–759  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

744
745//------------------------------------------------------------------------------
746bool ActionMap::processUnbind(const char *device, const char *action, SimObject* object /*= NULL*/)
747{
748 U32 deviceType;
749 U32 deviceInst;
750
751 if(!getDeviceTypeAndInstance(device, deviceType, deviceInst))
752 return false;
753 EventDescriptor eventDescriptor;
754 if (!createEventDescriptor(action, &eventDescriptor))
755 return false;
756
757 removeNode(deviceType, deviceInst, eventDescriptor.flags,eventDescriptor.eventCode, object);
758 return true;
759}
760
761//------------------------------------------------------------------------------
762// This function is for the use of the control remapper.

Callers 1

actionMap.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected