Guest User

Untitled

a guest
Dec 15th, 2019
15
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <XInput.h>
  2. #include <keyboard.h>
  3.  
  4. void setup() {
  5. XInput.begin();
  6. Keyboard.begin();
  7. }
  8.  
  9. void loop() {
  10. XInput.press(BUTTON_A);
  11. Keyboard.press(KEY_Q);
  12. delay(1000);
  13.  
  14. XInput.release(BUTTON_A);
  15. Keyboard.release(KEY_Q);
  16. delay(1000);
  17. }
RAW Paste Data