From f4ca9abc9dabc98760324ddf4ae5944d63a5e96e Mon Sep 17 00:00:00 2001 From: nick black Date: Sun, 17 Oct 2021 18:42:12 -0400 Subject: [PATCH] [reel PoC] ignore EvType::Release events --- src/pocpp/reel.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pocpp/reel.cpp b/src/pocpp/reel.cpp index b920a6b56..1d2b04e29 100644 --- a/src/pocpp/reel.cpp +++ b/src/pocpp/reel.cpp @@ -41,7 +41,7 @@ class TabletCtx { }; int tabletfxn(struct nctablet* _t, bool cliptop __attribute__ ((unused))){ - NcTablet *t = NcTablet::map_tablet (_t); + NcTablet *t = NcTablet::map_tablet(_t); Plane* p = t->get_plane(); auto tctx = t->get_userptr(); p->erase(); @@ -121,6 +121,9 @@ int runreels(struct notcurses* nc, struct ncreel* nr){ char32_t key; ncinput ni; while((key = notcurses_getc_blocking(nc, &ni)) != (char32_t)-1){ + if(ni.evtype == EvType::Release){ + continue; + } switch(key){ case 'q': return 0;