MCPcopy Create free account
hub / github.com/axhlzy/Il2CppHookScripts / HookMotionEvent

Function HookMotionEvent

Il2cppHook/_Ufunc.js:7621–7636  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7619Object.defineProperty(exports, "__esModule", { value: true });
7620exports.setClick = exports.HookMotionEvent = void 0;
7621const HookMotionEvent = () => {
7622 Java.perform(() => {
7623 Java.use("android.view.View").onTouchEvent.implementation = function (event) {
7624 let ret = this.onTouchEvent(event);
7625 LOG("\n" + getLine(25) + " onTouchEvent " + getLine(25), LogColor.YELLOW);
7626 LOG(ret + "\t" + event, LogColor.C36);
7627 return ret;
7628 };
7629 Java.use("android.app.Activity").dispatchTouchEvent.implementation = function (event) {
7630 let ret = this.dispatchTouchEvent(event);
7631 LOG("\n" + getLine(25) + " dispatchTouchEvent " + getLine(25), LogColor.YELLOW);
7632 LOG(ret + "\t" + event, LogColor.C36);
7633 return ret;
7634 };
7635 });
7636};
7637exports.HookMotionEvent = HookMotionEvent;
7638const setClick = (x, y) => {
7639 if (x == undefined || y == undefined)

Callers

nothing calls this directly

Calls 3

performMethod · 0.80
LOGFunction · 0.70
getLineFunction · 0.70

Tested by

no test coverage detected