Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Joystick axes input

Discussion in 'Editor & General Support' started by tbryant, Aug 12, 2009.

  1. tbryant

    tbryant

    Joined:
    Aug 12, 2009
    Posts:
    17
    I'm working on a custom HID controller, and decided to use the joystick axes as fields that contain sensor data.
    What I am doing is using a 24 bit joystick axis, then scaling the range back to the original range (not -1 to 1).

    This works well on the Mac, but for some reason on Windows, the input (which is a float) seems to be truncated to 3 decimal places - this is unfortunate, since most of the 24 bits are corrupted.

    If this is the case, then Windows can only handle ~11 bits for an axes - is that true?

    Is there any way to get the "truly" raw data from the Input class?

    Also - I've seen some mention of OSC, and I'm wondering if it would be useful for me, but I don't quite understand what it is.

    -Tyler