hamze torabzade
hamze torabzade

Reputation: 7311

get inputs from specific keyboard (USB port) just in my APP even when its not focused

The situation :

I have two Keyboards connected to a single computer (both with USB cable).

Two problems :

  1. How can I get keyboard inputs when my application is not focused
  2. Get all inputs from specific keyboard and block its inputs for other applications.

I want two Users to work with one Computer with two Keyboards, one works just with my application, with one specific Keyboard and another user, can use the other Keyboard while working with the other software. Keyboard ports never changes. is it possible friends ? and how can i do that?

Upvotes: 7

Views: 4284

Answers (1)

Malcor
Malcor

Reputation: 2721

http://www.codeproject.com/Articles/17123/Using-Raw-Input-from-C-to-handle-multiple-keyboard

I used this for a project a while back, this should do it.

Upvotes: 3

Related Questions