From: Marten Richter Date: Sat, 10 Nov 2012 11:49:22 +0000 (+0100) Subject: Fix remotelinux clearbuffer X-Git-Url: https://git.vomp.tv/gitweb/?a=commitdiff_plain;h=00fd192ead940429913475ecbb32b605e73b9af9;p=vompclient-marten.git Fix remotelinux clearbuffer --- diff --git a/remotelinux.cc b/remotelinux.cc index 0a93201..fad7baf 100644 --- a/remotelinux.cc +++ b/remotelinux.cc @@ -300,7 +300,10 @@ UCHAR RemoteLinux::getButtonPress(int waitType) { void RemoteLinux::clearBuffer() { - while(getButtonPress(3) != NA_NONE); + UCHAR buttonpress=getButtonPress(3); + while(buttonpress != NA_NONE && buttonpress!=NA_UNKNOWN){ + buttonpress=getButtonPress(3); + }; } UCHAR RemoteLinux::TranslateHWCFixed(ULLONG code)