Vr controllable object in game

For Vr controllers I’ve seen it where you are able to move an object such as a arcade joystick I want to be able to get the range of motion between 2 points in a rotation and use that as my forward vector for movement. Does anyone know how the rig is setup. Can it be done with constraints or does it have to be pre rigged. The Vive had some archery and a arcade console with a joystick in vr. I understand the manipulation of objects in Vr, but this small thing somewhat eludes me if anyone can help will be muchly appreciated.