|
Post by jared6502 on Jun 11, 2020 4:36:30 GMT
I set up vJoy on my computer to read a large number of button inputs, only 16 of which are currently attached to buttons, from a device plugged in via a USB-serial bridge. I can read the inputs from it and feed them to a vJoy device using a modified version of the feeder example from the SDK. When fed into other programs this way, the buttons in the first 8 bits work as expected. The buttons in the second 8 bits, however, behave like turbo buttons as found on certain game controllers, in that they automatically switch on and off at a relatively fast constant rate. This is not an issue on the device end, as it's just plain switches that are read by a microcontroller and sent across the USB connection to the computer. Is this turbo button behavior built into vJoy? Is it a problem inherent to DirectInput where all buttons above 8 do this? Is there a way to work around this behavior so I can access the buttons without this happening or disable it entirely?
|
|
|
Post by Shaul (Admin) on Jun 11, 2020 5:28:48 GMT
It is not a feature of vJoy. vJoy has been in use for about a decade and I have never heard of such a problem.
|
|
|
Post by jared6502 on Jun 11, 2020 16:34:10 GMT
I found where the problem was. I changed the microcontroller's code to send the same byte constantly, and bytes were sometimes getting dropped from the serial stream on the PC end, causing things to get overwritten. I changed the way data was being read and it seems to work fine now.
|
|