Skip to content

MoveMouse

Narta Xaymar Dirks edited this page Nov 1, 2026 · 8 revisions

Blitz3DBlitzPlusBlitzBasic

MoveMouse

MoveMouse:Void x:Int32, y:Int32
Parameter Mode Type Default Description
x In Int32 required Horizontal position in the graphics buffer.
y In Int32 required Vertical position in the graphics buffer.

Description

Puts the pointer at a position of the graphics buffer, in buffer pixels. After the call MouseX and MouseY return the new position straight away.

Differences

  • The pointer is not warped on the desktop. The window takes the pointer over while MoveMouse is being called each frame and the position the program sees is calculated from the mouse movement, which keeps MouseXSpeed and MouseYSpeed correct. When MoveMouse is not called for about 300 milliseconds the pointer is given back and placed where the program thought it was.

Related Commands

FlushMouse, GetMouse, LastMouseDevice, LockMouse, MouseChanged, MouseDeviceConnected, UnlockMouse, WaitMouse

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally