comparison tools/64vw.c @ 1576:e5be5235e7e1

Make home/end keys to go to first and last file respectively in 64vw.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 13 May 2018 09:49:03 +0300
parents 4643cd757c0b
children 1eb8c1dc81fd
comparison
equal deleted inserted replaced
1575:2a9d0431e7b4 1576:e5be5235e7e1
337 if (currIndex < noptFilenames2 - 1 - SET_SKIP_AMOUNT) 337 if (currIndex < noptFilenames2 - 1 - SET_SKIP_AMOUNT)
338 currIndex += SET_SKIP_AMOUNT; 338 currIndex += SET_SKIP_AMOUNT;
339 else 339 else
340 currIndex = noptFilenames2 - 1; 340 currIndex = noptFilenames2 - 1;
341 break; 341 break;
342
343 case SDLK_HOME:
344 currIndex = 0;
345 break;
346
347 case SDLK_END:
348 currIndex = noptFilenames2 - 1;
342 break; 349 break;
343 350
344 case SDLK_f: 351 case SDLK_f:
345 optVFlags ^= SDL_WINDOW_FULLSCREEN_DESKTOP; 352 optVFlags ^= SDL_WINDOW_FULLSCREEN_DESKTOP;
346 if (SDL_SetWindowFullscreen(window, optVFlags) != 0) 353 if (SDL_SetWindowFullscreen(window, optVFlags) != 0)