Hi, I just bought a SpaceMouse pro for integration into my custom application.
I wanted to ask if anyone had any simple example code to read HID raw data from the device. For now what I need is just a simple code that can print the raw data to the console. I found a python library that can do it, the pywinusb but I would like to do it in C/C ++ natively on windows, possibly without third party libraries. I searched on the internet and it seems that this is possible, but I haven't found complete source codes, can anyone help me?
Read raw hid data natively on windows.
Moderator: Moderators
-
- Posts: 4
- Joined: Mon Jan 11, 2021 2:19 am
Re: Read raw hid data natively on windows.
Hi federico.massimi,
Have a word with the API Support team (contacts in the "software developer programme" web page here). They should be able to find something for you.federico.massimi wrote: ↑Mon Jan 11, 2021 2:56 am I wanted to ask if anyone had any simple example code to read HID raw data from the device.
Nuno Gomes
Re: Read raw hid data natively on windows.
Have you found it? Can you send me a copy? Thank you
Re: Read raw hid data natively on windows.
Have you found it? Can you send me a copy? Thank you
-
- Posts: 4
- Joined: Mon Jan 11, 2021 2:19 am
Re: Read raw hid data natively on windows.
Unfortunately I have not found it, but I am very close to a code that works. When I finish I'll send you a copy of my code. Do you need it for C / C ++ or for java?
-
- Posts: 4
- Joined: Mon Jan 11, 2021 2:19 am
Re: Read raw hid data natively on windows.
I wrote this code which should help you.
-
- Posts: 4
- Joined: Mon Jan 11, 2021 2:19 am
Re: Read raw hid data natively on windows.
I wrote this code which should help you
Re: Read raw hid data natively on windows.
Just implemented what you are looking for yesterday.
https://github.com/FreeSpacenav/libspnavdev/pulls
https://github.com/FreeSpacenav/libspnavdev/pulls