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

Method AddActionMap

src/InputManager.cpp:158–163  ·  view source on GitHub ↗

Define an action mapping by name. If the mapping already exists, an additonal input is created for the mapping. The values of an action map may be 0 (off / released), or 1 (on / pressed). Action maps are called when they occur. @param name the string identifier for the mapping @param Id the input ID (scancode, etc) for the mapping */

Source from the content-addressed store, hash-verified

156 @param Id the input ID (scancode, etc) for the mapping
157 */
158void InputManager::AddActionMap(const std::string& name, int Id){
159
160 //add so that tick is aware of this
161 awareActionValues.insert(Id);
162 codeToAction[Id].push_back(name);
163}
164
165void InputManager::RemoveActionMap(const std::string& name, int Id)
166{

Callers 1

TestWorldMethod · 0.80

Calls 2

insertMethod · 0.45
push_backMethod · 0.45

Tested by 1

TestWorldMethod · 0.64