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"

Using the mouse cursor in a game

Okay so I want the main menu in my game to use the mouse cursor. There are some problems that I've notice with this. Firstly, whenever the player clicks out of the window of a packaged game, it begins to slow down and drop frames a lot. (I know/think this is a feature to save power, but I really want the option to disable it.) This means that if at any point in my game's main menu, the player could just click out of the window and make the game look like garbage. Secondly, I'm wondering if there can be text boxes in unreal where a player can click in and type something (Or would I have to make an event for every key on the keyboard?) Any answer or response would be greatly appreciated! Thanks!

Product Version: UE 4.16
more ▼

asked Aug 26 '17 at 02:12 PM in Using UE4

avatar image

76 4 6 14

avatar image Spishy Aug 26 '17 at 02:32 PM

Update: When I had the slowdown, this was when I clicked out of the packaged product of 4.7.6. In 4.16.3, The game no longer slows down when clicked out of the window,(64 bit) but it does mute sounds and button inputs from my xbox 360 controller do not work. Does anyone know how to fix that?

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

1 answer: sort voted first

Hey, to your question,

Firstly the frametate. This is fixed in editor quite easily, though I have not double checked this propagates to a packaged project. If you go to your editor preferences, general>misc. (4.16) or performance (4.17) You can disable "use less cpu when in background"

Secondly, the click boxes. In the UMG widget editor, theres a widget called "text box" This one, unlike text, allows you to enter text at runtime as a input box. Theres an event for onTextCommited, which returns the text the user entered, ie playerName.

Update to your update.

The sound muting and especially the game input not working when clicked out of is expected behavior. The sound may be fixable by tweaking your defaultEngine.ini and adding this line.


The controller not working is probably not fixable, without being in focus your OS will see the input but there's nothing to consume the input.

Hope that helps

more ▼

answered Aug 26 '17 at 03:56 PM

avatar image

888 17 21 37

avatar image Spishy Aug 26 '17 at 04:47 PM

Thank you! You are of tremendous help! I honestly don't mind the controller thing because I only plan to have the mouse active during the main menu and level select screens-neither of which will accept input from an Xbox 360 controller.

avatar image Spishy Aug 26 '17 at 04:48 PM

Out of curiosity, I'll go back into 4.7.6 and see if the editor preferences propagate to packaged product.

UPDATE: It appears that it does! That's kind of cool.

(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