Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Some Joysticks / GameControllers not working  (Read 1681 times)
monsenrm
Customers
Community Member
*****
Posts: 97


« on: December 31, 2009, 12:31:01 AM »

For some joysticks there is no usable data returned in the TV_JOYSTATE or TV_JOYSTATE2 variables. Of course that means I have tried both GetControllerState and the Advanced version.

Some joysticks are just fine.  I get good data on my Logitech Extreme 3D with the twist handle.  I get good data on others with various combinations of slider bars, buttons and axis.

But - a few - like some Saitek ones, I get no usable data at all - zeros or crazy numbers in other fields.  The controller .GetAxisCount reports the correct axis count - put when polled I see no usable data  (zeros in most used fields, wild numbers in others).

Could there be some structure problem in TV_JOYSTATE or TV_JOYSTATE2?

Also, I get the correct axis count but the button count on some of these controllers report numbers like 652.

When looking at a "Watch" of TV_JOYSTATE2 ther is totally bizarre data in some of the fields like fslider0 = 8155741432 or vx = 111204640, etc.


Also when looking at TV_JOYSTATE or TV_JOYSTATE2 variables at the same time, I get different numbers for the same fields in some cases.  The main fields like x,y,z are both zeros but others like Slider0 are different - like TV_JOYSTATE.Slider0=0 and TV_JOYSTATE2.slider0=312456222.

Any help would be appreciated.  I have a beta out now and my customers are complaining!



« Last Edit: December 31, 2009, 01:07:29 AM by monsenrm » Logged
monsenrm
Customers
Community Member
*****
Posts: 97


« Reply #1 on: December 31, 2009, 04:10:46 AM »

And furthermore....

I downloaded this little test Vb.net sample from here:
http://www.xtremevbtalk.com/attachment.php?attachmentid=23257&d=1133479532

It is a nice example of using DirectX for joysticks. 

Anyway, all joysticks work fine here - where some are not working in TV.

I can probably use this instead - but I am sure you guys would rather have your version fixed.

Logged
jviper
Community Member
*
Posts: 2127

Discipline in training


« Reply #2 on: December 31, 2009, 05:41:45 AM »

What does your GetJoyStickCount return? If the answer is more joysticks than you have plugged in (i.e. it 2 plugged in and it returns 7), then I would suggest iterating through all of them. I have found that sometimes things end up in the joystick list that are not necessarily joysticks. So watch for that. Otherwise I would make sure drivers are installed for your joystick. I have a Saitek and it worked fine after i installed drivers for it even though it seemed to work when I ran the Windows Joystick Test.
Logged

JAbstract.....Don't just imagine, make it happen!
monsenrm
Customers
Community Member
*****
Posts: 97


« Reply #3 on: December 31, 2009, 07:47:16 AM »

Right  - I know what you are saying.  I only "count" joysticks that have more than one axis - so I actually count devices with axis.  I allow multiple joysticks that users can assign to other functions simultanously (like rudder peddles and yoke.)

All joysticks used to work in v6.1 / 6.3.  Basicaly the same code.

Logged
jviper
Community Member
*
Posts: 2127

Discipline in training


« Reply #4 on: December 31, 2009, 05:43:19 PM »

hmmm, my only answer then is to make sure you have the latest drivers for the joystick installed. If that's not it, I don't know.
Logged

JAbstract.....Don't just imagine, make it happen!
monsenrm
Customers
Community Member
*****
Posts: 97


« Reply #5 on: January 01, 2010, 02:44:32 AM »

Thanks - but it is not drivers.  All joysticks work fine in the "other" example.  They just don't work in TV.

I am in the process of converting my program to use DirectInput.  It is mostly done, and all joysticks are working again - just not using the TV methods.
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4944


WWW
« Reply #6 on: January 12, 2010, 08:05:36 AM »

Interesting, what code are you using so that these controllers work in DirectInput? Doing anything special ? I don't see why it shouldnt work in the engine.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
AramcoRon
Customers
Community Member
*****
Posts: 3


« Reply #7 on: January 13, 2010, 12:24:33 AM »

Sylvain,

I used the code -almost directly- from the xtremevbtalk.com site I mentioned in the earlier part of the thread.  All joysticks work fine using this code.  I replaced all the TV code with this code and have all joysticks working now.

As I said - it is not all joysticks that don't work with TV code - just some.  I would suggest trying a few.

I released a beta of my new version of EL3D and was instantly hit with large quantities of people complainig that joysticks didn't work.  I then plugged in a "weird" joystick which is a six axis RC flight simulator box recogonized as an Interlink USB controller.  It didn't work.  No data came back from a poll.  My plain Logitech joystick worked fine.  Other people had some joysticks that worked, some that didn't. 

All joysticks worked in version 6.3 - so something changed.

I was forced to recode the joystick stuff and drop all TV game controller references.  Now all joysticks work fine.

Ron



Logged
bloomk
Customers
Community Member
*****
Posts: 81


« Reply #8 on: January 15, 2010, 02:16:07 AM »

i have also noticed many of my players having problems with joysticks after the novemebr update. Something is haywire..
Logged

Street Challenge LLC
Multiplayer Drag Racing
http://www.streetchallenge.info/
SylvainTV
Administrator
Community Member
*****
Posts: 4944


WWW
« Reply #9 on: January 15, 2010, 06:37:47 AM »

OK thanks for the info. I will see what i changed between these releases
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks