Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Gamecube.h>
- #include <Nintendo.h>
- #include <N64.h>
- #include <N64API.h>
- #include <GamecubeAPI.h>
- #include <Gamecube_N64.h>
- CGamecubeConsole GamecubeConsole1(8);
- Gamecube_Data_t d = defaultGamecubeData;
- void setup() {
- // put your setup code here, to run once:
- int i;
- d.report.a = 0;
- d.report.b = 0;
- d.report.x = 0;
- d.report.y = 0;
- d.report.start = 0;
- d.report.dleft = 0;
- d.report.dright = 0;
- d.report.ddown = 0;
- d.report.dup = 0;
- d.report.z = 0;
- d.report.r = 0;
- d.report.l = 0;
- d.report.xAxis = 128;
- d.report.yAxis = 128;
- d.report.cxAxis = 128;
- d.report.cyAxis = 128;
- d.report.left = 0;
- d.report.right = 0;
- d.report.start = 1;
- GamecubeConsole1.write(d); //press start
- d.report.start = 0;
- GamecubeConsole1.write(d); //release start
- }
- void loop() {
- // put your main code here, to run repeatedly:
- GamecubeConsole1.write(d);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement