What do the mouse axis events actually return?

Hey guys,

The float that the above events return represent what, exactly? Doesn’t seem to be a coordinate on the screen, but rather the mouse velocity or something of the sort?


It’s an axis value just like joystick or key axis inputs. The difference is that while joysticks return -1.0 through 1.0 and keys/buttons return 1.0, most mouses have some form of acceleration enabled and can return higher values depending on how fast you slide the mouse.

That’s the thing I don’t get - what does the axis value represent in a mouse? A button is up or down, and a joystick has physical maximums to which the stick can be pushed, but the mouse can go on forever. What is this value constrained by?