Re: FFB dev. thread
Posted: Sun Oct 16, 2016 6:28 pm
Hi,
I've been working on this project again (it's late and I'm tired, so I'll keep this post short). Mostly refactored the vJoy packethandling side of things, and squashed some bugs/cleaned up the DIDevice FFB part. Afterwards I added an actual async queue to handle the packets because AFAIK these can't be dealt with in the blocking vJoyFFBPacketCallback. That's still a part of which I'm not entirely happy with, since I use a 'map' that gives me a generic packet 'converter' based on PacketType; then it converts the packet-data to that generic type; which in turn needs to be added to this queue; and then once the item is dequeued, it needs to be used as parameter for that generic packet converter again, which keeps track of an action that is called on each device, and takes this generic packet-data type. (like I said it's late so I don't really want to go completely in-depth, link to the corresponding pieces of code and such. Might do that tomorrow though. If someone is interested, see the commits on my branch. Sorry in advance, they're way too bulky and not really descriptive)
Anyway, I hope someone is able to pull/build from my FFB branch, because I still don't have an FFB device . No one has helped me out yet on the other forum I usually roam around (the place which started this all ).
That said, I know you're short on time Anders. Good luck with the game, looks like it's coming together nicely already
I've been working on this project again (it's late and I'm tired, so I'll keep this post short). Mostly refactored the vJoy packethandling side of things, and squashed some bugs/cleaned up the DIDevice FFB part. Afterwards I added an actual async queue to handle the packets because AFAIK these can't be dealt with in the blocking vJoyFFBPacketCallback. That's still a part of which I'm not entirely happy with, since I use a 'map' that gives me a generic packet 'converter' based on PacketType; then it converts the packet-data to that generic type; which in turn needs to be added to this queue; and then once the item is dequeued, it needs to be used as parameter for that generic packet converter again, which keeps track of an action that is called on each device, and takes this generic packet-data type. (like I said it's late so I don't really want to go completely in-depth, link to the corresponding pieces of code and such. Might do that tomorrow though. If someone is interested, see the commits on my branch. Sorry in advance, they're way too bulky and not really descriptive)
Anyway, I hope someone is able to pull/build from my FFB branch, because I still don't have an FFB device . No one has helped me out yet on the other forum I usually roam around (the place which started this all ).
That said, I know you're short on time Anders. Good luck with the game, looks like it's coming together nicely already