comparison tools/64vw.c @ 1595:1eb8c1dc81fd

Add arrow up and down keys as alias controls to left and right.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 14 May 2018 06:44:20 +0300
parents e5be5235e7e1
children 9bc23e64f565
comparison
equal deleted inserted replaced
1594:afb49736615a 1595:1eb8c1dc81fd
310 case SDLK_ESCAPE: 310 case SDLK_ESCAPE:
311 case SDLK_q: 311 case SDLK_q:
312 exitFlag = TRUE; 312 exitFlag = TRUE;
313 break; 313 break;
314 314
315 case SDLK_DOWN:
315 case SDLK_LEFT: 316 case SDLK_LEFT:
316 if (currIndex > 0) 317 if (currIndex > 0)
317 currIndex--; 318 currIndex--;
318 else 319 else
319 currIndex = 0; 320 currIndex = 0;
320 break; 321 break;
321 322
323 case SDLK_UP:
322 case SDLK_RIGHT: 324 case SDLK_RIGHT:
323 if (currIndex < noptFilenames2 - 1) 325 if (currIndex < noptFilenames2 - 1)
324 currIndex++; 326 currIndex++;
325 else 327 else
326 currIndex = noptFilenames2 - 1; 328 currIndex = noptFilenames2 - 1;