Joystick input hook
I need to intercep and disable joystick input from a game, I was wonder if I can use a modified version of reshade for doing that.
If someone can point me in the right direction it will be very useful for me.
- Posts: 3666
crosire wrote: ReShade does neither hook XInput nor DirectInput, so there is nothing in there that would help your case. You could use the hooking system of ReShade to code such hooks of course (since ReShade is open source). But that obviously requires good programming skils and a basic understanding of how hooks work.
I ve looked in the code and I ve seen in input.cpp a function called handle_window_message (that discard input when reshade gui is displayed)
so I was thinking of catching RIM_TYPEHID events from there but in fact it is more complicated than expected
I will try a little more, thanks again for your advice if someone has others they are welcome
- Posts: 137
The game is a unity game and the input devices are completly mixed up (u can use keyboard joystic joypad at the same time), no controller settings ingame at all
but I would like to exclude joystick.
The "hacking" itself it is not so complex I managed to intercept hid messages and return 1 for ignore them but the joystick still works.
There is certanly something I don't understand in comunication chain or in wndproc (peekmessage behaviour).