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

Function showEventData

Il2cppHook/_Ufunc.js:2715–2726  ·  view source on GitHub ↗
(eventData)

Source from the content-addressed store, hash-verified

2713exports.showEventData = void 0;
2714const class_1 = require("./class");
2715const showEventData = (eventData) => {
2716 LOGO(`${getLine(15)} EventData ${getLine(15)}`);
2717 let eventDataPack = new class_1.PointerEventImpl(eventData);
2718 let click_vector2 = allocVector();
2719 callFunction(find_method("UnityEngine.UI", "PointerEventData", "get_position", 0), click_vector2, eventData);
2720 LOGD("ClickPositon\t--->\t" + click_vector2.readFloat() + "\t" + click_vector2.add(p_size).readFloat());
2721 LOGD("clickTime\t--->\t" + eventDataPack.get_clickTime());
2722 LOGD("clickCount\t--->\t" + eventDataPack.get_clickCount());
2723 let delta_vector2 = allocVector();
2724 callFunction(find_method("UnityEngine.UI", "PointerEventData", "get_delta", 0), allocVector(), eventData);
2725 LOGD("delta\t\t--->\t" + delta_vector2.readFloat() + "\t" + delta_vector2.add(p_size).readFloat());
2726};
2727exports.showEventData = showEventData;
2728globalThis.showEventData = showEventData;
2729},{"./class":25}],27:[function(require,module,exports){

Callers 1

OnPointerClickFunction · 0.70

Calls 7

get_clickTimeMethod · 0.95
get_clickCountMethod · 0.95
LOGOFunction · 0.70
getLineFunction · 0.70
allocVectorFunction · 0.70
callFunctionFunction · 0.70
LOGDFunction · 0.70

Tested by

no test coverage detected