Getting the absolute mouse position with SlimDX

Started by
12 comments, last by jpetrie 11 years, 3 months ago
Quote:Original post by Narf the Mouse
Quote:Original post by jtagge75
Why? Getting/setting the mouse position has nothing to do with the graphics API that is being used.

Gee, maybe it's the Mouse class in the SlimDX library. Having a Mouse class is generally a sign of Mouse-related data.

Now go dogpile on someone else.
SlimDX is open source. If you don't like the way they've implemented certain features, I'm sure they'd appreciate patches.
Advertisement

You can set the AxisMode in Properties:


_mouse.Properties.AxisMode = DeviceAxisMode.Absolute;

System.Drawing.Point p = renderform.PointToClient(SlimDX.Windows.RenderForm.MousePosition);

SlimDX is open source. If you don't like the way they've implemented certain features, I'm sure they'd appreciate patches.

To be fair, SlimDX wouldn't accept such a patch since it would add functionality that isn't in the API it wraps.

This topic is closed to new replies.

Advertisement