/* run this example from nxlink nxlink <-a switch_ip> nxlink_stdio.nro -s -s or --server tells nxlink to open a socket nxlink can connect to. */ #include #include #include #include #include #include #include int main(int argc, char **argv) { consoleInit(NULL); // Configure our supported input layout: a single player with standard controller styles padConfigureInput(1, HidNpadStyleSet_NpadStandard); // Initialize the default gamepad (which reads handheld mode inputs as well as the first connected controller) PadState pad; padInitializeDefault(&pad); // Initialise sockets socketInitializeDefault(); printf("Hello World!\n"); // Display arguments sent from nxlink printf("%d arguments\n", argc); for (int i=0; i