Questions tagged [hid]

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.

1252 questions
6
votes
2 answers

Windows HID Device Name Format

There are various ways to retrieve the Windows "Device Name" of a HID device, GetRawInputDeviceInfo with RIDI_DEVICENAME being one way to do it. Given the example…
tonyg
  • 197
  • 2
  • 13
6
votes
3 answers

Using HIDAPI, how can you query the raw report descriptor?

I'd like to deconstruct the raw reports received from the hid_read function of hidapi. As I understand, this can be achieved using the information from the device's report descriptors. But when trying to query for those descriptors, I get lost…
Shane Holloway
  • 7,550
  • 4
  • 29
  • 37
6
votes
1 answer

How to read HID devices (/dev/hidrawX) with Qt on Linux?

I'm working on a 'RepRap calibration tool' which would use a mouse attached to the printing platform to measure the movement of the platform. Right now I'm stuck trying to read raw mouse data from /dev/hidrawX, but I'm unable to read any data. So…
darkjavi
  • 63
  • 1
  • 4
6
votes
2 answers

Generic keyboard emulation using Arduino Leonardo

I am trying to use an Arduino Leonardo for keyboard emulation since that is one of its advertised features. I have been playing with the Leonardo and wrote a very simple sketch based off the Blink example. // Pin 13 has an LED connected on most…
Daniel Johnson
  • 351
  • 1
  • 2
  • 11
6
votes
3 answers

Argument Exception thrown by PtrToStructure

Can someone please explain the following Argument Exception : The structure must not be a value class to me please. It's being cause by the following line of code in my program: Marshal.PtrToStructure(m.LParam, dbh); given that dbh is of…
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
5
votes
1 answer

Android register connection to windows as an HID client

after doing some preliminary searching, I was not able to find much information on how to register android as an HID client. That is, I would like to be able to send mouse controls from my phone to to the PC, essentially controlling my pc from droid…
AlexIIP
  • 2,461
  • 5
  • 29
  • 44
5
votes
2 answers

How can i communicate with an HID USB device in delphi

I have been researching this problem for a while now and I just can't seem to get it right. I have a C++ version of the software I would like to make in delphi, but I can't get it to work in delphi. I need some sort of tutorial or guide that can…
Grant
  • 233
  • 2
  • 5
  • 10
5
votes
2 answers

Enumerating USB HID Devices using SetupAPI in 64 bit app

I am using Delphi XE2 and attempting to upgrade our usb comms dll to 64 bit. We're using the JVCL SetupAPI and Hid units. All works perfectly using 32 bit compiler and can see my attached HID device. I switch to 64 bit and I can no longer see any of…
Steve Magness
  • 863
  • 14
  • 25
5
votes
1 answer

Accessing the HIDAPI library in python

I am trying to use python to communicate with a generic HID device. I have read that the HIDAPI library, written in C, beats libusb1.0 for simple and stable cross-platform HID communication. However, no one has ever bothered to show how to call the…
Ken
  • 53
  • 1
  • 3
5
votes
3 answers

Read data from Wii-balanceboard

Im trying to get the output from a Wii Fit (balance board). I can find the device via the C++ Bluetooth enumerators but attempts to connect via a windows socket are failing. Im wondering if anyone has had success in such a direction (C++, windows)…
ethrbunny
  • 10,379
  • 9
  • 69
  • 131
5
votes
1 answer

Emulate a Gaming Device - Raspberry PI Zero

Hi I want to use my Raspberry PI Zero as a HID Device (Joystick). When I connect my Raspberry PI Zero USB port to my PC I want it to show up as a joystick and add X & Y Axis to it, I currently managed to show the raspberry pi zero as a keyboard and…
Erwin Vorenhout
  • 181
  • 1
  • 5
  • 20
5
votes
3 answers

Bluetooth mouse/keyboard emulation

I'm having a hard time finding a software that would emulates a Bluetooth keyboard (and/or mouse) that follows HID standard. I've already found one, but I couldn't get it working: http://mulliner.org/bluetooth/xkbdbthid.php I'm only interested in a…
matech
  • 59
  • 1
  • 1
  • 3
5
votes
2 answers

How to get list of HID devices in a Swift/Cocoa application?

The following code works perfectly to get a list of connected HID devices: import Foundation import IOKit import IOKit.usb import IOKit.hid private func createDeviceMatchingDictionary( usagePage: Int, usage: Int) -> CFMutableDictionary { let…
chaimp
  • 16,897
  • 16
  • 53
  • 86
5
votes
1 answer

Android: Using HID over GATT directly in Application (Gadget=HID → control Application)

I have a Bluetooth LE Joystick with a couple of buttons. I want to connect it directly to the app without using the Bluetooth Settings, but by connecting to it via BluetoothLeScanner. I already can connect to a Heart Rate Monitor and get periodic…
Daniel F
  • 13,684
  • 11
  • 87
  • 116
5
votes
1 answer

Constrain mouse movement to region in OS X without jitter

I would like to constrain mouse movement to a specific rectangular region of the screen in OS X 10.11. I modified some code from MouseTools (below) to do this but it's jittery when you hit the edge of the screen. How can I get rid of this jitter? //…
Kyle McDonald
  • 1,171
  • 2
  • 11
  • 17