Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <XInput.h>
- #include <keyboard.h>
- void setup() {
- XInput.begin();
- Keyboard.begin();
- }
- void loop() {
- XInput.press(BUTTON_A);
- Keyboard.press(KEY_Q);
- delay(1000);
- XInput.release(BUTTON_A);
- Keyboard.release(KEY_Q);
- delay(1000);
- }
Add Comment
Please, Sign In to add comment