Optimize mouse movements a very little.

This commit is contained in:
SerpentSpirale 2021-07-15 19:08:55 +02:00
parent e61c94a0a6
commit 4f0bae9431

View File

@ -578,6 +578,7 @@ public class BaseMainActivity extends LoggableActivity {
for(int i = 0; i < ev.getPointerCount(); i++) {
if(ev.getToolType(i) == MotionEvent.TOOL_TYPE_MOUSE) {
mouseCursorIndex = i;
break;
}
}
if(mouseCursorIndex == -1) return false; // we cant consoom that, theres no mice!