I have built a Flight with two hall effect sensors using a 3rd party Pro Micro to interpret signals (Amazon.com):
This is my first Arduino project, there is a possibility that there is an issue with the actual game side of things (tried it on multiple). However, I want to make sure the Arduino side is correct.
Using the joystick library I was quite easily able to get the controller working and moving around in the x-y axis. The windows USB game controller settings recognize it and it moves perfectly inside the visual box. However, when i go into steam or a game, it will not recognize the controller or the bindings. Here is my code:
<Joystick.h>
Joystick_ Joystick;
int JoystickX;
int JoystickY;
void setup() {
pinMode(A0, INPUT_PULLUP);
pinMode(A2, INPUT_PULLUP);
Joystick.begin();
Joystick.setXAxisRange(0, 1024);
Joystick.setYAxisRange(0, 1024);
}
void loop() {
JoystickX = analogRead(A2);
JoystickY = analogRead(A0);
Joystick.setXAxis(JoystickX);
Joystick.setYAxis(JoystickY);
Joystick.sendState();
}
Am I missing something blatantly obvious?
Steam occasionally recognizes the joystick as AXIS 0, but not independently as x and y.
Thank you