I want to be able to make the player walk forward in Unreal Engine 5 using the left and right mouse button, so if I press and hold the left and right mouse buttons will the player walk forward.
I know how to do it in -blueprint, but want to use C++ for it.
Can anyone help me?