CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Usb compound emumerated but joystick not visible[solved]

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
NicolasC



Joined: 14 Sep 2006
Posts: 27

View user's profile Send private message

Usb compound emumerated but joystick not visible[solved]
PostPosted: Fri Sep 29, 2006 5:40 am     Reply with quote

From the examples folder, I modify the ex_usb_kbmouse by replacing the mouse with a joystick (from ex_usb_hid).
This device is correctly enumerated by winXP but the joystick does not show up in the control panel joystick list.
Keystroke from the keyboard are correctly received by application.

Shall I think that my desciptor are Ok as I get enumerated ? In that case where should I look ?

Regards


Last edited by NicolasC on Fri Sep 29, 2006 12:03 pm; edited 1 time in total
Douglas Kennedy



Joined: 07 Sep 2003
Posts: 755
Location: Florida

View user's profile Send private message AIM Address

PostPosted: Fri Sep 29, 2006 11:13 am     Reply with quote

First look in your registry
HKey_LOCAL_MACHINE> SYSTEM>ControlSet001>Enum>USB
your specific vid and pid should be there. An enumerated device is connected with its driver there via a GUID number.
See if your device manger has a device with a ? or a caution flag. It is likely that if you are truly enumerated that you haven't connected with a working driver. Enumeration is a bunch of descriptors exchanged with the OS if things go well you are allowed entry to the registry where it connects you with an existing driver or calls for a new driver to be installed.
NicolasC



Joined: 14 Sep 2006
Posts: 27

View user's profile Send private message

PostPosted: Fri Sep 29, 2006 11:51 am     Reply with quote

You were right.
First when I changed in USB_CLASS_SPECIFIC_DESC the mouse with the joystick, I forgot to also update the interface descriptor (subclass code and protocol code )

I deleted the key in the registry and the reinstall did the trick

Thanks a lot for your help
Very Happy
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group