PDA

View Full Version : Snap Mouse Cursor



rjmyth
10-28-2010, 01:24 PM
im making a radial weapon select menu in scaleform (it works fine). the user holds a button to bring up this menu.

now what i need is for the mouse to default/snap to the very center of this selection menu when the buttons pressed because at the moment depending on how the player has been moving the pawn, the mouse could start anywhere on the screen and ut just seems messy.

i tried searching for stuff from flash and or uscript but have had no luck finding such scrfipts for either. does anyone have any useful information on this?

Matt Doyle
10-28-2010, 02:30 PM
In ActionScript, _xmouse and _ymouse are used to get the x & y values of the mouse cursor, but they are read only properties and cannot be set that I know of.

There is no way I know of to set the actual mouse position in ActionScript. You'll probably have to do something in UnrealScript to set it, but I don't know what that might be.

Eggmunkee
11-10-2010, 01:54 AM
In October Beta the function in UIRoot (I think) which set the mouse position was removed. Following the advice given from Blade[UG] in this thread (http://forums.epicgames.com/showthread.php?t=749311&page=2&highlight=scaleform+cursor), you can track the mouse position in code and set it at will, getting changes from PlayerInput.aMouseX and aMouseY each frame.

What I am wondering is will all scaleform hover and click type actions not work if the shown cursor is off from the Windows cursor location? That's the main problem I see with the current situation. I'm hoping there will be a fix for this in November's Beta.