Forum > General

Setting mouse position

(1/2) > >>

MarsTeam:
Hello, I'm doing some OpenGL stuff and I would need to set mouse position to center of screen. Any idea how to change Mouse's x,y ?
 Thanks

MarsTeam:
Anyone ? Is there really no way to set it ? I'm not using GLUT by the way.

garlar27:
Try using MouseAndKeyInput component. You might need to install it, and add it to your project by Add/New Requirement from the Project Inspector.

I've never used it with mouse, so I can't help you much with this.

bonmario:

--- Quote from: MarsTeam on January 25, 2011, 01:43:13 am ---Hello, I'm doing some OpenGL stuff and I would need to set mouse position to center of screen. Any idea how to change Mouse's x,y ?
 Thanks

--- End quote ---



--- Code: ---Mouse.CursorPos.X:=50;
Mouse.CursorPos.Y:=100;
--- End code ---

Hi, Mario

MarsTeam:
Error; Argument cannot be assigned to.

Navigation

[0] Message Index

[#] Next page

Go to full version