Hi, whenever the mouse moves I want to do a certain action but my input axises (Mouse X & Mouse Y) always returned 0 unless I pressed a mouse button. Which led me to testing the GetInputMouseDelta() on each tick and it also always returns 0 unless I press a mouse button.
So what can I do to get the mouse axis value without having to press a mouse button?
I know one solution I can use the solution that in either tick event or axis event use the GetMousePosition() and store the position and compare to last get.
Hi, I’m doing a GetHitResultUnderCursorForObjects to find a specific position of a grid. Then I’m moving an actor between the tiles whenever I hit a new tile with mouse.
The mouse position is dependent on the playercontroller. If you get the Player controller, then drag off the node GetInputMouseDelta, you can get the movement since the last frame.
Conversely, you can also get use “GetMousePosition”, store off the positions and do the delta yourself.