mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
fix tp point lose issue
This commit is contained in:
parent
e7a36b4bee
commit
56d622cd47
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user