[daala] [PATCH] player_example shortcuts
Ralph Giles
giles at thaumas.net
Wed Apr 29 08:12:49 PDT 2015
Here's a patch to add two aliases to the keyboard controls in
player_example. I think these make support more discoverable.
right arrow works like period to pause and advance frames.
home works like r to restart playback at the beginning.
-r
-------------- next part --------------
From 747e3da0ab437492ca9eb5c3b98ba29db3801c0f Mon Sep 17 00:00:00 2001
From: Ralph Giles <giles at mozilla.com>
Date: Wed, 29 Apr 2015 07:43:14 -0700
Subject: [PATCH] Add more player shortcuts.
Make 'home' an alias for 'r' and 'right arrow' and alias for '.'.
---
examples/player_example.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/examples/player_example.c b/examples/player_example.c
index aa2a1fd..2063a2c 100644
--- a/examples/player_example.c
+++ b/examples/player_example.c
@@ -235,11 +235,13 @@ void player_example_handle_event(player_example *player, SDL_Event *event) {
player->step = 0;
break;
}
+ case SDLK_RIGHT:
case SDLK_PERIOD: {
player->step = 1;
player->paused = 1;
break;
}
+ case SDLK_HOME:
case SDLK_r: {
player->restart = 1;
if (player->paused) {
--
2.3.6
More information about the daala
mailing list