Ports
May 24, 2013, 05:29:20 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: sensor in USB HID KEYBOARD  (Read 881 times)
jain1.anuj
Member
***
Posts: 28


« on: January 10, 2012, 06:20:08 am »

hello,
i am working on a USB HID device. it's a proximity device which detects the person's distance and fire keystrokes accordingly.
i am using Hid.dll , Setupapi.dll , kernel32.dll for read/write operation.
i want to detect the distance of the object by using proximity sensor. is there any API present in .NET for this purpose?
Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1629


WWW
« Reply #1 on: January 10, 2012, 11:40:08 am »

HID reports can contain data for any purpose. You can define your own protocol for what the data in a report means and write an application that reads the reports and takes the desired action.

To emulate keypresses, see:

http://msdn.microsoft.com/en-us/library/ms171548.aspx

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!