I could go a head one step and everything seems to be well but only on the simulation program, but on realty the two values are always zero and they are not changing while the analog signals change and I also tried to post constant values to find out where the problem is but it think it is from the descriptor file.
I think my Descriptor is still have something wrong so would anyone help me to find what's wrong in my descriptor?
Thank you
Code:
ReportDescriptor1
; USAGE_PAGE (Generic Desktop)
retlw 0x05
retlw 0x01
;retlw 0xFF
; USAGE (Joystick)
retlw 0x09
retlw 0x05
; collection(application)
retlw 0xA1
retlw 0x01
;usage (Pointer)
;retlw 0x09
;retlw 0x01
;usage (Phiscal)
;retlw 0xA1
;retlw 0x00
; *** INPUT REPORT ***
; usage(X)
retlw 0x09
retlw 0x33
;usage(Y)
retlw 0x19
retlw 0x34
retlw 0x15 ; logical minimum (-128)
retlw 0x80 ;
retlw 0x25 ; logical maximum (127)
retlw 0x7F
retlw 0x75 ; Report Size (8)
retlw 0x08 ;
retlw 0x95 ; Report count(2)
retlw 0x02 ;
; Input (Data, Variable, Absolute)
retlw 0x81
retlw 0x02
retlw 0xC0 ; end collection
EndReportDescriptor1
Bookmarks