Results 1 to 3 of 3
  1. #1
    MSgt. Shooter Person
    Join Date
    Jul 2010
    Posts
    209

    Default Snap Mouse Cursor

    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?

  2. #2

    Default

    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.

  3. #3

    Default

    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, 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.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.