Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Get Mouse Position Stuck at Value While Mouse Button Pressed

Below is a Youtube video demoing the issue. In short, when I click I can no longer move my mouse. I believe I have narrowed it down to the Get Mouse Position function. Is there a different function I should be using to get the current mouse position. It updates the position of one of my UI widgets. Thanks for any help!


alt text

Product Version: UE 4.15
capture.png (142.1 kB)
more ▼

asked Apr 12 '17 at 02:42 AM in Blueprint Scripting

avatar image

11 1 3 4

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

The "Get Mouse Position on Viewport" function seems to be working pretty well, even with pressed mousebutton.

more ▼

answered Sep 17 '18 at 06:46 PM

avatar image

15 1 2 2

(comments are locked)
10|2000 characters needed characters left

I just ran unto the same issue. I don't know why GetMousePosition doesn't update when a mouse button is held, it may be by design, but this blueprint might help. What I did was store the mouse position when the button is pressed and then update that position every event tick using GetMouseX and GetMouseY. I had to invert the Y because I was drawing something in the HUD that had to follow the cursor. I know you have a different issue to solve but maybe this can give you some ideas.

alt text

mouseposition.png (465.4 kB)
more ▼

answered Apr 28 '17 at 08:08 PM

avatar image

1 3 1

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question