Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <Gamecube.h>
  2. #include <Nintendo.h>
  3. #include <N64.h>
  4. #include <N64API.h>
  5. #include <GamecubeAPI.h>
  6. #include <Gamecube_N64.h>
  7.  
  8. CGamecubeConsole GamecubeConsole1(8);
  9.  
  10. Gamecube_Data_t d = defaultGamecubeData;
  11.  
  12. void setup() {
  13.   // put your setup code here, to run once:
  14.  
  15.   int i;
  16.  
  17.   d.report.a = 0;
  18.   d.report.b = 0;
  19.   d.report.x = 0;
  20.   d.report.y = 0;
  21.   d.report.start = 0;
  22.   d.report.dleft = 0;
  23.   d.report.dright = 0;
  24.   d.report.ddown = 0;
  25.   d.report.dup = 0;
  26.   d.report.z = 0;
  27.   d.report.r = 0;
  28.   d.report.l = 0;
  29.   d.report.xAxis = 128;
  30.   d.report.yAxis = 128;
  31.   d.report.cxAxis = 128;
  32.   d.report.cyAxis = 128;
  33.   d.report.left = 0;
  34.   d.report.right = 0;
  35.  
  36.   d.report.start = 1;
  37.   GamecubeConsole1.write(d);  //press start
  38.  
  39.   d.report.start = 0;
  40.   GamecubeConsole1.write(d);  //release start
  41.  
  42. }
  43.  
  44. void loop() {
  45.   // put your main code here, to run repeatedly:
  46.   GamecubeConsole1.write(d);
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement