Something I've always been curious about. MAME defines the range of input values for axes such as analog joystick axes, or deltas such as mouse motion, as -65536 to +65536.
This is 17 bits in each direction. Why not a more logical -65535 to +65535? That is 16 bits in each direction.
From my reading of the code, the entire acceptable range of input values is inclusive of these 17 bit ranges. It would make more sense if the ranges are -65536 to +65536 *non-inclusive*, but the code and the comments don't read that way.
Why are these ranges 17 bits?
|