mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 12:36:17 +02:00
Speed up isActive()
This commit is contained in:
parent
09999edc27
commit
cb654dd520
@ -170,8 +170,9 @@ bool InputManager::operator[](int action) {
|
||||
}
|
||||
|
||||
bool InputManager::isActive(int action) {
|
||||
for (uint x=0; x<mappings[action].size(); x++) {
|
||||
InputMap map = mappings[action][x];
|
||||
MappingList mapList = mappings[action];
|
||||
for (MappingList::const_iterator it = mapList.begin(); it !=mapList.end(); ++it) {
|
||||
InputMap map = *it;
|
||||
|
||||
switch (map.type) {
|
||||
case InputManager::MAPPING_TYPE_BUTTON:
|
||||
|
Loading…
Reference in New Issue
Block a user