Can't Move Camera with Mouse In Game unless I hold it down

When I start my game, the camera, which is controlled by the mouse, will not move unless I hold one of the mouse buttons down, and stops moving the camera when I release it. I want the game to start with the mouse freely moving the camera and for it to stay that way but I cannot figure out what is causing this. I tried project settings for the input but that did not help.

you should capture the mouse for that i think

go to project settings → Input → uncheck “Use mouse for touch“

I did both of these and when I start the game, it works as intended, but as soon as I click in the game, the camera them stops moving unless I hold any of the mouse buttons down and I just cannot figure out why it does this.

This is the main part of the code I use to show the cursor when the game starts, but despite messing around with the Set Input Mode UI Only and Set Input Mode Game Only nodes, it doesn’t seem to make a difference in the game. There are also other menus that are apart of my Main Menu level as sub-UI’s too, if that helps.

And to specify what I’m looking to do: I want to be able to move the camera with the mouse while still having the mouse on screen, while still being able to click objects within the game without changing that behavior. Is that even possible?

im not sure. i would assume you can still get those events. but it would have to be something a bit manual iirc. i don’t know the exact answer to that, i’m sorry. but i heard that question before in the forums. have you tried searching?

I did not realize I never even responded to this. I started focusing on so many other things I forgot about my mouse problem, haha. To illustrate what my actual problem is in the game, here is what it looks like. You can see when I move my cursor around, the camera stops moving on and off despite the cursor moving. That is me pressing a mouse button and releasing it, which is not what I want.

When I first load into the game, the mouse DOES rotate the camera, but it stops doing that when I click a button, and then from that point I have to hold a mouse button to interact with anything in the game. I am wondering if this is caused by a conflict between the game’s mouse input mode and the interact input blueprint for clicking?

1 Like