Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Input key issue with Omsi 2 #7
Hello, I try to get input keys coming from the game Omsi 2, especially one in particular: the touch 6. Everything works very well if I am on google chrome, my desktop or even in a folder, but as soon as Windows is on Omsi 2 (fullscreen mode or not), the console (in eclipse ide) indicates me nothing more :/
PS = My code if necessary :
Hello, this is what I was able to adjust since the last time.
Hello Plaigon, not sure if I can support your here. Generally a lot of games are using low-level keyboard hooks themselfs to catch keyboard input. Or they even go "one level deeper" and use raw-input to receive keyboard events.
Generally the way low-level hooks work, is that one hook is called after another. Each hook has to call the next hook by invoking
Hook priorities are based on the order in which the hooks are installed. The hook installed latest, has the highest priority. This means you’d have to ensure that the low-level hook is installed after the game was started, to check if they actually don't call
Last but not least, if they are grabbing the input, e.g. using raw input, they might forcefully prevent other programs from getting any input events. Again bad design, but likely you won't find a way to outsmart this.
Hope this helps. Regards, Kristian