Replies: 1 comment 2 replies
-
I am new to this myself, so my answer is probably far from ideal, but it works as a starting point. Hope this helps someone else new to making custom controllers. Since the potentiometer is an analog input that provides a range of values, as opposed to digital values of HIGH or LOW, you must capture the potentiometer's position using Once you have the current value of the potentiometer, it can simply be given to the Gamepad axis you want. Notice that your potentiometer probably gives values between 0 and 1024, and the documentation for the Gamepad X and Y axes range from -32768 to +32767, so you would need to figure out how you want to expand your 0-1024 to get full use of the available resolution. Or you can do what I did and just use Windows to calibrate with the values as they are. Here's a sample of setting the Y-axis within
|
Beta Was this translation helpful? Give feedback.
-
Hello, i
m just a beginer in coding, and i don
t understand how i suppose to map the ponentiometer for axes.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions