MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK / SK_Unity_InControl_SetDeviceStyle_il2cpp

Function SK_Unity_InControl_SetDeviceStyle_il2cpp

src/plugins/unity.cpp:2656–2680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2654using InControl_InputDevice_OnAttached_il2cpp_pfn = void (__fastcall *)(void*);
2655using InControl_NativeInputDevice_Vibrate_il2cpp_pfn = void (__fastcall *)(void*, float leftSpeed, float rightSpeed);
2656using InControl_NativeInputDevice_Update_il2cpp_pfn = void (__fastcall *)(void*, ULONG updateTick, float deltaTime);
2657
2658static InControl_InputDevice_OnAttached_il2cpp_pfn InControl_InputDevice_OnAttached_il2cpp_Original = nullptr;
2659static InControl_NativeInputDevice_Vibrate_il2cpp_pfn InControl_NativeInputDevice_Vibrate_il2cpp_Original = nullptr;
2660static InControl_NativeInputDevice_Update_il2cpp_pfn InControl_NativeInputDevice_Update_il2cpp_Original = nullptr;
2661
2662static void SK_Unity_InControl_SetDeviceStyle_il2cpp (void* device)
2663{
2664 if (device == nullptr)
2665 return;
2666
2667 if (SK_Unity_GlyphEnumVal == -1)
2668 return;
2669
2670 static auto image =
2671 SK_Unity_il2cppAssemblies.assemblyInControl;
2672
2673 if (image == nullptr)
2674 return;
2675
2676 static auto
2677 method = image->get_class ("InputDevice", "InControl")->get_method ("set_DeviceStyle", 1);
2678 if (! method)
2679 return;
2680
2681 SK_LOG_FIRST_CALL
2682
2683 void* params [1] = { &SK_Unity_GlyphEnumVal };

Calls 3

get_methodMethod · 0.80
invokeMethod · 0.80
get_classMethod · 0.45

Tested by

no test coverage detected