Hello,
I've wanted to realize a Gamepad with a Arduino Uno Rev. 3
I have bought some Buttons and connected it to my Arduino.
With this short code i can put the signal from 0 to 1.
void setup(){
Serial.begin(9600);
pinMode(2,INPUT);
}
void loop(){
int buttonstatus;
buttonstatus = digitalRead(2);
Serial.println(buttonstatus,DEC);
}
Now my Question is, how to use this signal for a game. So that i can press the Button and the game realise that i press it. It should work the same like a keyboard.
Please help me

Thank you very much,
Mario