Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am looking for a way to occupy a HID device(Gamepad,..) exclusively from even Window manager.
An other application lie on window manager can not react to device, I do not want to use Hook in window. I tend to use DirectInput for read input data from device.
Please give me any solutions. Thanks
Posted

1 solution

You can always take a look at the Raw Input Model

About Raw Input
[^]

Not sure if you can block other applications from using the input device, but it is worth looking into if you don't like hooks.
 
Share this answer
 
Comments
lannv281 11-Jul-14 4:44am    
Sorry, I am a newbie in window technical.
I am fine in reading input data from device by RawInput or DirectInput now.
But, I concern about:
I want a service (be called X ) can read data from Gamepad(Both ForeGround and BackGround state). Can X disconnect associate between Window manager and Gamepad ? Thanks
George Jonsson 11-Jul-14 6:06am    
Sorry. That I don't know. I am just in the beginning of my studies of this topic myself.
lannv281 11-Jul-14 6:28am    
Thank George.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900