DronCode / ReHitman

Hitman Blood Money Reverse Project
http://rehitman.online
28 stars 5 forks source link

Disable keyboard & mouse input when debug menu opened #19

Closed DronCode closed 4 years ago

DronCode commented 4 years ago

It's very difficult to use the debug menu when keyboard & mouse input enabled. Too many conflicts in work. As a solution, we can hook the update method on the keyboard and stop mouse events emitting when the in-game debugger opened.

DronCode commented 4 years ago

Can be fixed in #27 (found in-game events, through that we can disable player input if it needed). @HHCHunter, @Notexe what do you feel about it?

HHCHunter commented 4 years ago

I think it's a good idea, as long as we can notify the player that this is the case. Should be possible in imGUI

DronCode commented 4 years ago

If ReHitman debugger is opened player will get the event "MSG_DISABLECONTROLS". If debugger closed the player will get event "MSG_ENABLECONTROLS".

Notexe commented 4 years ago

Nice, that should work.