Set right analog stick to move mouse

I’m trying to add game pad controls to my game and I have everything working except for the right analog stick. For my keyboard controls the mouse is used for aiming the crosshair and I’m having a problem making the right analog control the mouse. This is the code that is controlling my mouse. Do I just have to add the analog input to this code or do I have to create a new block?

b1227d5613499263b8c7ca785b790117fee6a813.jpeg