fix tp point lose issue

This commit is contained in:
houzh 2023-11-17 18:10:15 +08:00
parent e7a36b4bee
commit 56d622cd47

View File

@ -21,8 +21,8 @@ InputEventSource::InputEventSource(){
mLastInputEventTime = mLastPlaybackEventTime;
auto func=[this](){
while(1){
INPUTEVENT es[32];
const int count = InputGetEvents(es,32,10);
INPUTEVENT es[128];
const int count = InputGetEvents(es,sizeof(es)/sizeof(INPUTEVENT),20);
std::lock_guard<std::mutex> lock(mtxEvents);
if(count)mLastInputEventTime = SystemClock::uptimeMillis();
LOGV_IF(count,"rcv %d rawEvents",count);