ZVISION: Implement code for getControl
This commit is contained in:
parent
9dd9bfce80
commit
bc4b0b5bf6
1 changed files with 3 additions and 1 deletions
|
@ -351,7 +351,9 @@ void ScriptManager::unsetStateFlag(uint32 key, uint value) {
|
|||
}
|
||||
|
||||
Control *ScriptManager::getControl(uint32 key) {
|
||||
|
||||
for (ControlList::iterator iter = _activeControls->begin(); iter != _activeControls->end(); ++iter)
|
||||
if ((*iter)->getKey() == key)
|
||||
return *iter;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue