Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(key.LastKey >= 'a' && key.LastKey <= 'z')
- {
- int searchLetter = key.LastKey;
- while(tolower(SongNames[NameIndex[s]][0]) < searchLetter && s < int(SongNames.size())-1 && tolower(SongNames[NameIndex[s+1]][0]) <= searchLetter) { scrollOffset -= fontSizef; s++; }
- while(tolower(SongNames[NameIndex[s]][0]) > searchLetter && s > 0 && tolower(SongNames[NameIndex[s-1]][0]) >= searchLetter) { scrollOffset += fontSizef; s--; }
- scrollSpeed = 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment