HID stands for Human Interface Device, a type of computer peripheral taking input from a user and sometimes providing feedback, for example keyboard, mouse, joystick, trackball and the like.
Questions tagged [hid]
1252 questions
7
votes
2 answers
Trying to bind bluetooth socket to PSM 17 and 19 returns EACCESS on MeeGo
I am trying to use Nokia N9 (meego) as a virtual Bluetooth mouse/keyboard. I am trying to use this small program as a starting point but I am running into problem: when I am running this program I get an error telling me that "Bind error (PSM 19):…

sdkljhdf hda
- 1,387
- 9
- 17
7
votes
2 answers
Virtual HID-keyboard for OS X
I'm trying to create a virtual bluetooth keyboard client for Mac OS. that means my Mac will serve as a BT KB. I read about the bluetooth API in OS X (in ObjC), and I also found an HID API for Mac (in C)
To make this work I understand I need to…

eyalw
- 730
- 7
- 22
7
votes
3 answers
Android USB HID Device
Does anyone know how to configure an Android device (tablet) to appear as a USB HID device when connected to a PC?
Is there any other way of getting data from the tablet to the PC (via USB) other than writing it to a file, and have the PC retrieve…

radders
- 923
- 8
- 29
7
votes
1 answer
How to debug USB HID scancode-keycode translation in Linux
I have recently converted a 122-key terminal keyboard to USB as a configfs USB gadget (the keyboard portion is using HID codes). It works quite well, except that I cannot seem to get my Arch Linux installation to recognize certain HID codes…

Campbell
- 396
- 3
- 10
7
votes
0 answers
How to translate X11 keycode back to scancode or hid usage id reliably
Almost self resolved.
Background info
linux keycode
The below is from: linux_xmodmap_tutorial
Scancode → a number your keyboard sends to a computer. For USB
keyboards, it's defined by the USB standard.
Keycode → a number used by Linux kernel to…

h.n
- 143
- 9
7
votes
1 answer
Send APDU command to card through HID OMNIKEY 5427 CK
I'm trying to pass though APDUs command via HID OMNIKEY 5427 CK to operate MIFARE Card ie. Ultralight C card, on the Windows 10 x64 OS environment using WinSCard.dll. (I'm under NXP NDA and have full access t their documents)
I tried to find…

Eric F.
- 309
- 4
- 11
7
votes
2 answers
Python evdev equivalent for OSX
I have written a python script that polls evdev for a HID barcode scanner (emulates a keyboard): the script works well on Linux platforms (Ubuntu). Is there an OS X Python equivalent for evdev that would allow minor porting of the existing python…

gatorback
- 1,351
- 4
- 19
- 44
7
votes
1 answer
How to detect gamepad triggers both pushed with USB HID API?
I use RawInput + Windows USB HID API to receive WM_INPUT message when a gamepad button is pressed and retrieve gamepad state.
There's a problem: two triggers work on same axis which means you can't figure out if two triggers are pressed at the same…

Juster
- 732
- 1
- 10
- 26
7
votes
2 answers
How do you get the raw descriptor data from a USB HID device in Windows?
How do you get the raw descriptor data from a HID device in Windows?
Background:
I need to get the Manufacturer, Product Name, and Serial Number from a HID device in Windows. I'm using hid.dll to access the devices using the functions seen here. My…

Guavaman
- 450
- 1
- 5
- 12
7
votes
4 answers
Find out which process has an exclusive lock on a USB device handle
I have a library that reads/writes to a USB-device using CreateFile() API. The device happens to implement the HID-device profile, such that it's compatible with Microsoft's HID class driver.
Some other application installed on the system is opening…

Mike Haboustak
- 2,266
- 1
- 18
- 18
7
votes
1 answer
Detecting input from any USB HID in C# using HidLibrary
First of all i am new to C#. I want to create an application that detects any usb hid device (I have used HidLibrary and it detects the HIDs) but i want to get input from the hid as well (I have used Raw input but that doesn't work i think its only…

Aitizazk
- 332
- 1
- 4
- 16
7
votes
1 answer
Gamepad and joystick support on Mac OS X in user space
I have been searching through how to do gamepad and joystick support on Mac for some days and all resources that I found seems to suggest a pre-installed driver along with using Apple's HID API, which works.
The drawback about this approach is that…

vgrimmer
- 165
- 2
- 12
7
votes
0 answers
Getting mouse events from HIDManager in OSX with C++
I'm porting a game from pc to osx and I'm getting stuck with input events. The main game window is a cocoa app that interfaces with a C++ backend. The pc code uses DirectInput and windows messages to generate keyboard and mouse events that the…

Teknogrebo
- 1,247
- 1
- 12
- 22
7
votes
2 answers
My SetupDiEnumDeviceInterfaces is not working
I am interested to find out if I am doing this right:
//DeviceManager.h
#include
//#include
#include
#include
#include
#include
#include
extern "C"{
#include…

Danny
- 9,199
- 16
- 53
- 75
7
votes
2 answers
USB HID hangs on Read() in C#
I am trying to connect to a USB digital scale. The code does connect to the scale as scale.IsConnected comes true, but it hangs on scale.Read(250) where 250 should be the timeout in milliseconds, but it never return from Read.
I am using the code…

PUG
- 4,301
- 13
- 73
- 115