Why can (BlockInput, On) prevent mouse movement to control camera in game and (BlockInput, MouseMove) can't? Topic is solved

Ask gaming related questions (AHK v1.1 and older)
player8998

Why can (BlockInput, On) prevent mouse movement to control camera in game and (BlockInput, MouseMove) can't?

03 Dec 2019, 21:32

(BlockInput, On) prevents mouse movement to control camera in game, but (BlockInput, MouseMove) can't! Why is that?
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: Why can (BlockInput, On) prevent mouse movement to control camera in game and (BlockInput, MouseMove) can't?  Topic is solved

04 Dec 2019, 00:12

theyre implemented differently. one calls BlockInput, the other sets up a low level mouse hook and returns positive integers(do not forward to other hooks) from its callback on WM_MOUSEMOVE
ur game might be overriding this hook with a hook of its own, it could be that it isnt generating any WM_MOUSEMOVE messages or theres also a possibility it reads its input in a totally different way entirely(eg, rawinput)
as to why that is, well, we dont know what makes BlockInput(the winapi version) tick, so who knows...

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 69 guests