File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
bridge-system/src/main/java/com/penumbraos/bridge_system/provider Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import com.penumbraos.bridge.ITouchpadProvider
1212
1313private const val TOUCHPAD_MONITOR_NAME = " Humane Touchpad Monitor"
1414private const val TOUCHPAD_DISPLAY_ID = 3344
15+ private const val TOUCHPAD_EVENT_SOURCE = 0x100008
1516
1617private const val TAG = " TouchpadProvider"
1718
@@ -22,7 +23,7 @@ class TouchpadProvider(private val looper: Looper) :
2223 inner class EventListener (inputChannel : InputChannel ) :
2324 InputEventReceiver (inputChannel, looper) {
2425 override fun onInputEvent (event : InputEvent ? ) {
25- if (event != null ) {
26+ if (event != null && event.isFromSource( TOUCHPAD_EVENT_SOURCE ) ) {
2627 val callbacksToRemove = mutableListOf<ITouchpadCallback >()
2728 callbacks.forEach { callback ->
2829 safeCallback(TAG , {
You can’t perform that action at this time.
0 commit comments