oblitum / Interception

The Interception API aims to build a portable programming interface that allows one to intercept and control a range of input devices.
http://oblita.com/interception
1.35k stars 269 forks source link

Can it be used to send keys to specific application? #24

Closed SMUsamaShah closed 8 years ago

SMUsamaShah commented 8 years ago

Can it be used to simulate/send inputs (both mouse and keyboard) on multiple games running on same system individually in a way that each receives input specified for it?

Currently I am hooking DirectInput but it does not work in all games. Also even in one game it does not work everywhere e.g. not on the widgets. So I am sending window messages + directinput to make it work.

oblitum commented 8 years ago

I've seen support for multiple mouse pointers in Windows before, I don't know the details or how it would interact with this library sorry.

When I've tested attaching multiple mice in my machine, I've just got the function of a single pointer for multiple mice, but the library will detect events individually from corresponding devices, even though what you give back to Windows will be represented by a single pointer.

I didn't try any setup of input device per window, so I can't say whether it's possible or not.