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 */
| 156 | @param Id the input ID (scancode, etc) for the mapping |
| 157 | */ |
| 158 | void 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 | |
| 165 | void InputManager::RemoveActionMap(const std::string& name, int Id) |
| 166 | { |