XBox Windows USB Joystick + FEZ = nothing :(

Hey Guys,

I wanted to get a joystick that has less specs and takes up less space than my only other one (a Saitek X51 - it has 50 odd buttons, 6 axes, etc… full HOTAS joystick) so i decided on a Microsoft Xbox 360 Controller for Windows. I don’t own any consoles or any recent games… so bought it purely for FEZ, however FEZ won’t recognise it as a Joystick.

I went with the Xbox 360 controller because it has 2 easy analogue inputs as well as 11 other buttons a pad i’m guessing should be a hatswitch. I’m planning on building a few arcade games for ChipworkX (and USBizi once i get the graphics lcd pcb’s) - hence why i went with a console game controller rather than the classical flight stick style.

If i start with the joystick plugged in i get the DeviceConnectedEvent fire, however not if i plug it in later.

Device details:


-		device	{GHIElectronics.NETMF.USBHost.USBH_Device}	GHIElectronics.NETMF.USBHost.USBH_Device
		ID	1073774736	uint
		INTERFACE_INDEX	255	byte
		PORT_NUMBER	0	byte
		PRODUCT_ID	654	ushort
		TYPE	0	GHIElectronics.NETMF.USBHost.USBH_DeviceType {byte}
		VENDOR_ID	1118	ushort


Joystick is:


?(int)USBH_DeviceType.Joystick
5

This is:


?(int)USBH_DeviceType.Unknown
0

Any ideas?

XBOX is not a joystick :smiley: It is a joystick but it doesn’t present itself on USB as a joystick.

Fortunately, FEZ is amazing and only FEZ can talk to almost any USB device. See this (link removed)

Hey Mark,

I have that full C# joystick lib done if you want it. It breaks out access to all of the joystick functions in like a few lines of code.

It’s not a joystick… so can’t use it :stuck_out_tongue:

Are you using this controller?
(link removed)

I have the link already above Foekie, did you see it? No need to double posts :wink:

Woops! Sorry Gus, I didn’t see that! :stuck_out_tongue:

I’ve updated my code to work with the new .net framework (just a few changes) i’ll upload changes once i have it all working with some extra features.

This link is dead microframeworkprojects.com is there some place else I can find this?

Enjoy http://www.tinyclr.com/codeshare/entry/37