Rotate camera with motion controller thumbstick

Hello this is probably something very basic but i cant seem to find a sollution anywhere. What im trying to achieve is that i want to rotate the player 90 degrees when he pushes the thumbstick to that direction of the oculus motion controller. I managed to make a smooth rotation by getting the axis vallue but i just dont know how to make it snap to 90 degrees. As the smooth rotation tends to make people sick. Any help would be much appreciated. Thank you.

Have a look at the First person shooter template in Unreal Engine. Configure it for VR from plug-ins . You need to enable “Using Motion Controllers?” in the Blueprint. This will give you the functionality you looking for.