x

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"

Mouse Cursor Disappears after Click

When I click down anywhere inside the Unreal Window, my mouse cursor disappears. Because of this, things like GetMousePosition() aren't really helpful as I'm only going to receive that last position the mouse had when it was visible.

I have bShowMouseCursor = True for my PlayerController already set.

Am I missing something to capture the mouse position as I am clicking?

Ultimately, I'm just trying to detect if a user is dragging the mouse immediately after a click.

Product Version: UE 4.15
Tags:
more ▼

asked Mar 23 '17 at 12:10 AM in C++ Programming

avatar image

Brian_Wright
16 1 4 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Turns out the mouse cursor hiding is an explicit property of your Input Mode

I was using FInputModeGameAndUI you can get the mouse cursor to show after a click by simply doing...

 // Inside your playerController....
 FInputModeGameAndUI inputMode;
 inputMode.SetHideCursorDuringCapture(false);
 SetInputMode(inputMode);


 


more ▼

answered Mar 23 '17 at 10:12 PM

avatar image

Brian_Wright
16 1 4 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Maybe try setting the input mode to UI like this:

 PlayerController->SetInputMode(FInputModeUIOnly());
more ▼

answered Mar 23 '17 at 09:27 AM

avatar image

pulp_user
1.3k 46 29 59

avatar image Brian_Wright Mar 23 '17 at 10:13 PM

Thanks for the input, got me thinking about the FInputModes...

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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