kbrddestroyer / CS2.KernelCheat

Just my attempt to break CS2 in kernel mode app for win64 target platform
MIT License
24 stars 4 forks source link

[BUG] Mouse(except Left click) and keyboard keys cant be used in ImGui #134

Closed only1mf closed 1 week ago

only1mf commented 3 weeks ago

Describe the bug Mouse(except Left click) and keyboard keys cant be used/detected by ImGui

To Reproduce Make an scroll bar or just open the Demo ImGui menu (ImGui::ShowDemoWindow(); in a loop) and there try to use your mouse scroll wheel to scroll down or up or go to the "Inputs & Focus" tab in the Demo ImGui and there you can see that it only picks up "MouseLeft" and nothing more then that

Screenshots or screen records image

Desktop (please complete the following information):

Additional context

kbrddestroyer commented 3 weeks ago

As I see WndProc processes overlay events incorrectly, so both ImGui and CS2 have some input lags

That can be both because of low tickrate on render thread and bugs in WndProc

kbrddestroyer commented 1 week ago

WELL WELL WELL FUCK WINAPI

Currently window will lose it's WS_EX_TRANSPARENT flag if GUI is on. That was the issue: WS_EX_TRANSPARENT it passing all events through (that's pretty obvious now)

kbrddestroyer commented 1 week ago

Not the best way to fix it tho