Allow to terminate stream

This commit is contained in:
rock88 2020-05-04 23:06:23 +03:00
parent ce543d4b72
commit 09df186b2b

View file

@ -118,7 +118,7 @@ void StreamWindow::draw(NVGcontext *ctx) {
}
// TODO: Get out of here...
if (keyboard_state[RETROK_q]) {
if (keyboard_state[RETROK_q] || ((game_pad_state.buttonFlags & LB_FLAG) && (game_pad_state.buttonFlags & RB_FLAG) && (game_pad_state.buttonFlags & DOWN_FLAG))) {
async([this] {
this->terminate();
});