emilyinure / solace-csgo

An internal csgo cheat for legacy hvh
36 stars 12 forks source link

Improvement : keyboard input #14

Closed thiblizz closed 1 year ago

thiblizz commented 1 year ago

@emilyinure Currently, only mouse input is not captured outside the game window, but keyboard input is still captured while you are on Windows and you could unintentionally unhook your cheat or even display the menu just by pressing keys, this is an unwanted/unnecessary behavior.

Regards,

thiblizz commented 1 year ago

@emilyinure If you toggle menu while not on the cs:go game window, then go back to game window, it will keep with low fps.

The only way to go back to normal is to unfocus the game window, untoggle back the menu, then come back to the cs:go game window.

thiblizz commented 1 year ago

I think menu toggling should be done in the wndproc hook, but afterwards the input should be updated in another way.

thiblizz commented 1 year ago

@emilyinure, not needed, but note that the wndproc hook doesn't need to be implemented.

emilyinure commented 1 year ago

I've fixed it but I ended up having to just check the focused window whenever scanning input. Wndproc was having some issues where keyboard input was delayed or not received at all. Wndproc is still used for mouse input as for some reason there's no delay or missed input for that.

thiblizz commented 1 year ago

I've fixed it but I ended up having to just check the focused window whenever scanning input. Wndproc was having some issues where keyboard input was delayed or not received at all. Wndproc is still used for mouse input as for some reason there's no delay or missed input for that.

On my side, I already implemented this check and totally removed the wndproc hook (doing everything in one hook).