Mercurial > hg > dmlib
changeset 167:e281663f04ba
Implement moving around in order list via pageup/down.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 06 Oct 2012 09:02:21 +0300 |
parents | 112eb95f2fba |
children | 21f54947eb18 |
files | ppl.c |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ppl.c Sat Oct 06 08:31:37 2012 +0300 +++ b/ppl.c Sat Oct 06 09:02:21 2012 +0300 @@ -700,6 +700,22 @@ jvmMute(engine.dev, engine.actChannel, !jvmGetMute(engine.dev, engine.actChannel)); break; + case SDLK_PAGEUP: + JSS_LOCK(engine.dev); + JSS_LOCK(engine.plr); + jmpPlayOrder(engine.plr, dmClamp(engine.plr->order - 1, 0, engine.mod->norders)); + JSS_UNLOCK(engine.plr); + JSS_UNLOCK(engine.dev); + break; + + case SDLK_PAGEDOWN: + JSS_LOCK(engine.dev); + JSS_LOCK(engine.plr); + jmpPlayOrder(engine.plr, dmClamp(engine.plr->order + 1, 0, engine.mod->norders)); + JSS_UNLOCK(engine.plr); + JSS_UNLOCK(engine.dev); + break; + default: break; }