yeastbeast
Member
I am working on a custom HID type for driving simulators that I forked directly from the Teensyduino "Keyboard+Mouse+Joystick" HID type. I only changed the joystick report descriptor (which is now 3 joystick axes), the size of the packets being sent (12 bytes to 8 bytes) and the joystick report data arrays and methods in the "usb_api.cpp" and "usb_api.h" files. All should be working correctly, and when I view the packets being sent with usbhid-dump, they are correct and are like the original type (Keyboard+Mouse+Joystick), just in a different place. However, the game which I am using to test, American Truck Simulator, doesn't detect the joystick axis input, which it did perfectly on the original type.
I am including the files (that i have changed) contained in
[*]First axes all the way on
[*]Second axis
[*]Third axis
[*]All axes on
[/LIST]
My operating system is Ubuntu 18.04.4 LTS and my hardware is the Teensy 2.0 programmed on Arduino.
View attachment DrivingSim.ino
Any help would be appreciated, as I am new to USB HID and it will help me learn.
I am including the files (that i have changed) contained in
Code:
(arduino root)/hardware/teensy/avr/cores/usb_drivingsim/[CODE], my directory for the custom type
[ATTACH]20932._xfImport[/ATTACH]
[ATTACH]20933._xfImport[/ATTACH]
[ATTACH]20934._xfImport[/ATTACH]
[ATTACH]20935._xfImport[/ATTACH]
The original type is contained in [CODE](arduino root)/hardware/teensy/avr/cores/usb_hid/[CODE]
Here are examples of the packets being sent:
[LIST]
[*]All axes at 0 [CODE]00 00 00 00 00 00 00 00
Code:
FF 03 00 00 00 00 00 00
Code:
00 FE 0F 00 00 00 00 00
Code:
00 00 F0 3F 00 00 00 00
Code:
FF FF FF 3F 00 00 00 00
My operating system is Ubuntu 18.04.4 LTS and my hardware is the Teensy 2.0 programmed on Arduino.
View attachment DrivingSim.ino
Any help would be appreciated, as I am new to USB HID and it will help me learn.