Stumped again! I’ve copied the joystick example from the online library reference to a new project in VC#2010 Express. Added the GHI System and GHI USBHost references. When I debug, it exits with code zero.
Here’s the last couple lines of the output:
The debugging target runtime is loading the application assemblies and starting execution.
Ready.
It turns out my dusty Saitek Cyborg Evo Force joystick won’t work unless I power it with the 24VDC supply it came with. I’ll try it with the supply later today. Was assuming it need the supply for the force feedback only. You know what they say about assuming…
How many buttons can be used with the GHI joystick class. My joystick has a total of 12 buttons. Has a hat and a thrust control. I see there is a hat implementation but what about the thrust control? The joystick also has the twist of the handle control. Would that be sensed also by FEZ yet?
look at output window, it will tell you why it existed. Probably you have old assemblies or something.
Go to Visual Studio ->View tab->Output.
If you are using express you need to do this first. Tools->Settings->Expert Settings
I’m pleased to report my joystick works with FEZ Domino now that it is powered! All 12 buttons are detected also! XY of the normal stick motion is detected. No thrust, stick twist, or the hat(little joystick on the stick near the trigger buttons).
Anyone know how to implement the thrust, stick twist, and hat? I should be good for now with what’s implemented. Tinkering to make a Halloween prop(s).
You can use all 12 buttons?
Chris, can you use all 12 buttons?
[quote]No thrust, stick twist, or the hat(little joystick on the stick near the trigger buttons).
Anyone know how to implement the thrust, stick twist, and hat? I should be good for now with what’s implemented. [/quote]
Unfortunately I do not know how to implement this. This is a USB thing, and you need good knowledge of USB. I hate to say that I do not have this knowledge, yet :wall:
We have a joystick with throttle and it reports the values on XY2…
For us to add this, we have to look in different joysticks with throttle. We will look into this.
Ok, I now have the hat switch readable. Still no throttle. Here is the code I have so far. I commented out the joystick as it is VERY sensitive and creates alot of posts to the debug output.
Since I was already messing around with USB stuff, I thought I’d hook up my Logitech Force3DPro.
It has 12 buttons, of which only 8 (0-7) get reported using the Button Up/Button Down events - note that since there are two events, one could “chord” the buttons if needed.
The hat reported positions 0-7, but returned 8 (not 15 like logictechs’ joystick) when returning to center.
Yaw (twist) is reported on the Y part of XY2, varying from -512 to 512.