Skip to content
Extraits de code Groupes Projets

Resolve "Incorrect state with command `lkt play`"

3 files
+ 8
7
Comparer les modifications
  • Côte à côte
  • En ligne

Fichiers

+ 2
4
@@ -338,10 +338,8 @@ loop:
state = SDL_GetKeyboardState(NULL);
ctrl = state[SDL_SCANCODE_LCTRL] || state[SDL_SCANCODE_RCTRL];
if (ctrl && event.key.keysym.sym == SDLK_SPACE) {
const char *cmd_pause[] = { "cycle", "pause", NULL };
mpv_command_async((mpv_handle *) sdl2->mpv, 0, cmd_pause);
}
if (ctrl && event.key.keysym.sym == SDLK_SPACE)
lkt_queue_send(sdl2->queue, lkt_event_play_toggle, LKT_PLAY_TOGGLE);
else if (event.key.keysym.sym == SDLK_n && ctrl)
lkt_queue_send(sdl2->queue, lkt_event_play_next, NULL);
Chargement en cours