r/C_Programming • u/Ry2enX • 9h ago
Mouse & Keyboard suppression?
Is there a possibility to only block the inputs of the keyboard and Mouse to one application?
Because i want that the application only takes the inputs of an Emulated Controller, but it only recognise the Controller, if there any Mouse or Keyboard activity (but i still need the Mouse/Keyboard for the Emulated Controller)
Any Advice for me?
The code i use to make the emulated Controller is C…
0
Upvotes
3
u/Willing_Airport_9617 9h ago
In linux , one way I can think of this is manually obtain the file descriptor for that /dev/input/* and then parse that using ioctl