Changeset 1710
- Timestamp:
- Aug 9, 2012, 11:44:59 PM (11 years ago)
- Location:
- trunk/src/input
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/input/input.cpp
r1692 r1710 218 218 } 219 219 220 Stick *Input::TrackStick( )220 Stick *Input::TrackStick(int desired) 221 221 { 222 222 /* FIXME: add the possibility to choose amongst sticks */ 223 if ( !data->m_sticks.Count())223 if (desired >= data->m_sticks.Count()) 224 224 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]; 227 227 } 228 228 -
trunk/src/input/input.h
r1342 r1710 50 50 static void DestroyStick(Stick *stick); 51 51 52 static Stick *TrackStick( );52 static Stick *TrackStick(int desired); 53 53 static void UntrackStick(Stick *stick); 54 54 };
Note: See TracChangeset
for help on using the changeset viewer.