Ports
May 24, 2013, 05:29:20 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
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
Ports
>
General Category
>
USB
>
sensor in USB HID KEYBOARD
Pages: [
1
]
« previous
next »
Print
Author
Topic: sensor in USB HID KEYBOARD (Read 881 times)
jain1.anuj
Member
Posts: 28
sensor in USB HID KEYBOARD
«
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
Re: sensor in USB HID KEYBOARD
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> USB
=> Serial Ports
=> Embedded Ethernet
=> Parallel Port
=> Other Interfaces
=> General Discussion
Loading...