Mouse move

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
blackwinter
GamingTools Subscriber
Posts: 74
Joined: Sun Jun 25, 2006 8:29 am

Mouse move

Post by blackwinter » Wed Sep 23, 2009 10:22 am

Can we move mouse like this? Or just int??

Mouse:SetPosition[1023.555,0]

Lax
Owner
Posts: 6634
Joined: Fri Jun 18, 2004 6:08 pm

Post by Lax » Wed Sep 23, 2009 10:46 am

No, the cursor position is always integers. There is no way to make the game think the position is halfway between positions 1023 and 1024.

The POINT structure is used by the operating system to describe the position of the cursor.
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Unless you're working with a game that uses a software cursor described in floating points, the answer is no. And if that is the case, you cannot use Mouse:SetPosition to set it.

Post Reply