Ignore:
Timestamp:
Aug 9, 2012, 11:44:59 PM (8 years ago)
Author:
sam
Message:

input: allow to easily track more than one input stick.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/input/input.cpp

    r1692 r1710  
    218218}
    219219
    220 Stick *Input::TrackStick()
     220Stick *Input::TrackStick(int desired)
    221221{
    222222    /* FIXME: add the possibility to choose amongst sticks */
    223     if (!data->m_sticks.Count())
     223    if (desired >= data->m_sticks.Count())
    224224        return NULL;
    225     Ticker::Ref(data->m_sticks[0]);
    226     return data->m_sticks[0];
     225    Ticker::Ref(data->m_sticks[desired]);
     226    return data->m_sticks[desired];
    227227}
    228228
Note: See TracChangeset for help on using the changeset viewer.