Mouse doesn't work but keyboard does

Whenever I play the game within the editor, all inputs work normally. After I package the game, however, the keyboard works but the mouse does not rotate the camera.

is there something that u did to disable input?
Just go to level input and create a EVENT beginPlay node and a node called input game and UI connect the beginplay exec to it and in player controller just attach a player controller node… Solved!

also tick this as the right answer if this did help

What I have is the main menu level bp calling a player hud function called SetDesiredWidget, which brings the main menu widget to focus with input set to ui only. When the game starts, the game level bp calls the same SetDesiredWidget function and sets it to the gameplay widget with input set to game mode only. If I replace the game mode only node with game and ui node, then I am unable to move my mouse curser within the packaged game AND within the editor, too, unless I hold down the right mouse button and move it (holding the right mouse button to move the mouse doesn’t work within the packaged game).

Bumping this because I have tried everything that I know of. I have set my HUD to none and called the gameplay widget directly from the level bp and then setting the input to game mode only. I even went so far as to delete all connections to my widgets entirely. For some reason, the packaged game just doesn’t recognize my mouse input even though it is recognized within the editor.

Maybe Give me a Screenshot? that may help a lot.
also be sure to get a player controller node and attach it to target in input game and ui. dont add anyhting in the focus widget one leave it blank.

Sorry for such a delayed response, it’s finals week for college :slight_smile:

Anyways, here is my bp for the player HUD. When I have it set up this way, I have to hold down the right mouse button in order to move the camera within the editor. Does not work at all when I package it.

![alt text]Blueprint for HUD1

does it work in the editor?. i dont see any reason this shouldnt work, also have added this in ur character bp or level bp. it should work fine if u put it in level bp. and if u dont have another level then u can use character bp aswell

This works in the editor when I hold the right mouse button down. Also, this is in my hud bp, but I get the same result if I put it in my level bp.

im having this crazy similar bug , where in editor the mouse can rotate the character, but in a cooked build the mouse only rotates to a certain degree and then stops… its funky

i was forgetting to set on begin play set input mode to game only… setting that fixes my issue… hope it works for you