I have a custom slider (credit dop2000) that i can use the touch control with to move and wanted to have the option of using a gamepad to control it. I have a custom cursor that i'm able to control using the analog sticks and want to use that to drag the slider.
I've more or less got the basics of this working, where i'm able to drag the slider using the gamepad by having the slider pin to the cursor when the cursor is overlapping the slider and the A button is held down.
However the issue i have is that while doing this, i can drag the slider anywhere. I want to be able to drag it just left or right along the slider bar.
I'm aware of why its happening, as i have my cursor set so that it can anywhere, so when the slider is pinned to cursor, it goes wherever the cursor goes. However, i can't seem to figure out how to just make it move just left or right along the slider bar.
So i need help with two things:
1. Get the slider to just move left or right along the slider bar axis when using the gamepad.
2. Have the cursor in the centre of the slider when dragging it. Right now, when dragging the slider, it moves to the side of the slider (makes more sense if you try the capx). This is a minor issue, it just something i would like to sort out but its not a priority.
Would appriciate some help and apologies if it seemed like i was going on and on in this post, i just wanted to try and explain the problem as best i could.
CAPX - https://www.dropbox.com/s/sc10hieacrf2ux1/Slider%20%28Controller%29.capx?dl=0
Thanks