Dev (#6) - strange defines in the api (#87) - Message List

strange defines in the api
 unsolved

Hi.

I made a PD external, based on cwiid. I got an email of one of the people using it about the difference between CWIID_CLASSIC_L_STICK_MAX and CWIID_CLASSIC_R_STICK_MAX, both defined in cwiid.h

I don't have a classic extension myself, so I'm not sure myself. But why should there be a difference in the maximum value for the left and the right stick? It seems like the same kind of stick to me. Thing is that, if you use this maximum to normalize the output, you'll get different values for the two sticks.

Regards,

yvan

  • Message #24364

    The left stick has an extra bit of precision. Normalizing by the appropriate max value will give you a range of 0 to 1 for each stick.

Attachments

No attachments created.