• Advertisement
Sign in to follow this  

SlimDX from VB to C#

This topic is 1245 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm news to SlimDX and have this project to convert some VB code to C#.

 

In the VB code, there is a section that compares JoystickState.GetPointOfViewControllers but the call is

 

js1.GetPointOfViewControllers(0) <> js2.GetPointOfViewControllers(0)

 

but try as I might, I cannot translate this into C# and so far, I haven't come across any documentation that allows calling GetPointOfViewControllers with a parameter.  So the only thing that I can do in C# is

 

js1.GetPointOfViewControllers()[0] != js2.GetPointOfViewControllers()[0]

 

is this right please?

Share this post


Link to post
Share on other sites
Advertisement


js1.GetPointOfViewControllers()[0] != js2.GetPointOfViewControllers()[0]
 
is this right please?

 

From the SlimDX documentation

public int[] GetPointOfViewControllers()

So yes, assuming you will always have at least one result from each call, that is what you should do.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement