Binding movement of laser on controller stick (axis)?

I believe the forum has a topic from someone who did a custom keypad pendant.
Have to search.
Here it is: