Thursday, February 29, 2024
HomeGame Developmententer - Drive Suggestions on joystick system utilizing SharpDX DirectInput API

enter – Drive Suggestions on joystick system utilizing SharpDX DirectInput API

Get enter from a USB joystick system within the Unity Recreation Engine and activate Drive Suggestions performance on the joystick from Unity.

I’m utilizing the SharpDX.DirectInput managed library to entry DirectX. Utilizing Direct Enter was listed as the one USB resolution the system presently helps in response to the response I received from the corporate who makes the system. (The system was initially developed to be used with particular simulator functions, not generic use. I didn’t make the choice of utilizing this system with the simulation we’re creating).

From all my analysis, SharpDX appears to be the best choice because it’s essentially the most just lately supported managed wrapper for DirectX and it was really helpful by the the system’s help workforce.

After per week of struggling I’ve been in a position to efficiently get enter from the system through SharpDX. It has been an uphill battle in opposition to restricted documentation and my very own inexperience on this space however I used to be in a position to lastly decipher examples to get that working. I’ve additionally been in a position to verify, through SharpDX, that the system has drive suggestions capabilities.

Nevertheless, I can not discover even a single code instance for sending drive suggestions instructions through SharpDX regardless that it’s supposedly potential (there are numerous structs, enums, courses, and strategies that every one appear to be associated to it throughout the SharpDX API).

The one code pattern I discovered was utilizing the DirectX 9.0 for managed code API. I used to be not in a position to translate it to SharpDX. (The reply additionally included a hyperlink to 2 different supposedly helpful examples, one right here, and one resurrected from the Web Archive right here each of which look like utilizing the DirectX 9.0 API).

I’ve each cause to consider that it’s potential however have not been in a position to determine it out of my very own accord. Any enter, recommendation, or instructions can be very a lot appreciated. Thanks prematurely!



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments

Arnavsijapati on Planet of Lana – Beta Demo
Jai Kishor Upadhyay on Planet of Lana – Beta Demo