Slightly more tidy on the regular example

This commit is contained in:
Ryan Pavlik
2012-12-10 14:17:00 -06:00
parent b3c0c390c4
commit 2c2e47478a

View File

@@ -36,12 +36,11 @@
#include <stdio.h> /* for printf */ #include <stdio.h> /* for printf */
#ifndef WIN32
#include <unistd.h> /* for usleep */
#endif
#include "wiiuse.h" /* for wiimote_t, classic_ctrl_t, etc */ #include "wiiuse.h" /* for wiimote_t, classic_ctrl_t, etc */
#ifndef WIIUSE_WIN32
#include <unistd.h> /* for usleep */
#endif
#define MAX_WIIMOTES 4 #define MAX_WIIMOTES 4
@@ -451,7 +450,7 @@ int main(int argc, char** argv) {
wiiuse_rumble(wiimotes[0], 1); wiiuse_rumble(wiimotes[0], 1);
wiiuse_rumble(wiimotes[1], 1); wiiuse_rumble(wiimotes[1], 1);
#ifndef WIN32 #ifndef WIIUSE_WIN32
usleep(200000); usleep(200000);
#else #else
Sleep(200); Sleep(200);