Subversion Repositories tpanel

Rev

Rev 416 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 416 Rev 418
Line 347... Line 347...
347
 
347
 
348
        if (mMap.map_lm.size() > 0)
348
        if (mMap.map_lm.size() > 0)
349
        {
349
        {
350
            for (mapIter = mMap.map_lm.begin(); mapIter != mMap.map_lm.end(); ++mapIter)
350
            for (mapIter = mMap.map_lm.begin(); mapIter != mMap.map_lm.end(); ++mapIter)
351
            {
351
            {
352
                // if "ax" is > 0 then this means that we have 2 axis. We must
352
                // To find also the joysticks, we must test for level codes
353
                // test for the normal channel in "c" and additional the channel
-
 
354
                // calculated by "c" + "ax". 2 channels means that it is a
353
                // less then and grater then *iter.
355
                // joystick.
-
 
356
                if (mapIter->p == port && (mapIter->c == *iter || (mapIter->ax >= 1 && (mapIter->c + mapIter->ax) == *iter)))
354
                if (mapIter->p == port && (mapIter->c == *iter || mapIter->c == (*iter-1) || mapIter->c == (*iter+1)))
357
                    map.push_back(*mapIter);
355
                    map.push_back(*mapIter);
358
            }
356
            }
359
        }
357
        }
360
    }
358
    }
361
 
359