android input,mouse right -> back,wheel -> home
This commit is contained in:
parent
a4cfd39f95
commit
839062ee6b
@ -55,6 +55,7 @@ class InputService : AccessibilityService() {
|
|||||||
if (mask == 9) {
|
if (mask == 9) {
|
||||||
leftIsDown = true
|
leftIsDown = true
|
||||||
startGesture(mouseX, mouseY)
|
startGesture(mouseX, mouseY)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// left down ,was down
|
// left down ,was down
|
||||||
@ -66,6 +67,17 @@ class InputService : AccessibilityService() {
|
|||||||
if (mask == 10) {
|
if (mask == 10) {
|
||||||
leftIsDown = false
|
leftIsDown = false
|
||||||
endGesture(mouseX, mouseY)
|
endGesture(mouseX, mouseY)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mask == 18) {
|
||||||
|
performGlobalAction(GLOBAL_ACTION_BACK)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mask == 34) {
|
||||||
|
performGlobalAction(GLOBAL_ACTION_HOME)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user