Post by nj on Jan 9, 2020 23:24:02 GMT
Hello Shaun,
I am trying to use vJoy to receive FFB values from either a test program or from a third party tool.
I tried both vJoy 2.1.8 and 2.1.9.1 versions with their respective C++ SDK example of vJoy, but got same behavior.
When using a FFB effect generator like github.com/erik-smit/FFBInspector, I receive correctly the FFB command and effect type, but internal data seems to be always corrupted, giving absurd values.
For exemple, playing a constant force effect with gain 10000 in FFBInspector and dumping the FFB values using vJoy SDK sample give a data field with the same value repeating : 6FBC48 6FBC48
... whatever effect/values is given.
Seems like a bug somewhere, but where ?
Regards
============= FFB Packet size Size 10 =============
> Device ID: 1
> Packet Type: Device Gain Report
>> Global Device Gain: 100
FFB Size 10
Cmd:000B000F ID:1D Size:02 - 6FBC48 6FBC48
====================================================
============= FFB Packet size Size 12 =============
> Device ID: 1
> Packet Type: Create New Effect Report
>> Effect Type: Constant Force
FFB Size 12
Cmd:000B0191 ID:11 Size:04 - 6FBC48 6FBC48 6FBC48 6FBC48
====================================================
============= FFB Packet size Size 12 =============
> Device ID: 1
> Packet Type: Constant Force Report
> Effect Block Index: 1
FFB Size 12
Cmd:000B000F ID:15 Size:04 - 6FBC48 6FBC48 6FBC48 6FBC48
====================================================
============= FFB Packet size Size 26 =============
> Device ID: 1
> Packet Type: Effect Report
> Effect Block Index: 1
>> Effect Report: Constant Force
>> Direction: 88 deg (3f)
>> Duration: Infinit
>> Trigger Repeat: 0
>> Sample Period: 0
>> Gain: 100%
FFB Size 26
Cmd:000B000F ID:11 Size:18 - 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48
====================================================
I am trying to use vJoy to receive FFB values from either a test program or from a third party tool.
I tried both vJoy 2.1.8 and 2.1.9.1 versions with their respective C++ SDK example of vJoy, but got same behavior.
When using a FFB effect generator like github.com/erik-smit/FFBInspector, I receive correctly the FFB command and effect type, but internal data seems to be always corrupted, giving absurd values.
For exemple, playing a constant force effect with gain 10000 in FFBInspector and dumping the FFB values using vJoy SDK sample give a data field with the same value repeating : 6FBC48 6FBC48
... whatever effect/values is given.
Seems like a bug somewhere, but where ?
Regards
============= FFB Packet size Size 10 =============
> Device ID: 1
> Packet Type: Device Gain Report
>> Global Device Gain: 100
FFB Size 10
Cmd:000B000F ID:1D Size:02 - 6FBC48 6FBC48
====================================================
============= FFB Packet size Size 12 =============
> Device ID: 1
> Packet Type: Create New Effect Report
>> Effect Type: Constant Force
FFB Size 12
Cmd:000B0191 ID:11 Size:04 - 6FBC48 6FBC48 6FBC48 6FBC48
====================================================
============= FFB Packet size Size 12 =============
> Device ID: 1
> Packet Type: Constant Force Report
> Effect Block Index: 1
FFB Size 12
Cmd:000B000F ID:15 Size:04 - 6FBC48 6FBC48 6FBC48 6FBC48
====================================================
============= FFB Packet size Size 26 =============
> Device ID: 1
> Packet Type: Effect Report
> Effect Block Index: 1
>> Effect Report: Constant Force
>> Direction: 88 deg (3f)
>> Duration: Infinit
>> Trigger Repeat: 0
>> Sample Period: 0
>> Gain: 100%
FFB Size 26
Cmd:000B000F ID:11 Size:18 - 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48 6FBC48
====================================================