1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| #include<stdio.h>
#include <iostream>
#include <stdlib.h>
#include<winsock2.h>
#pragma comment(lib,"ws2_32.lib")
#include "WM.h"
void main (void)
{
WM * WiiMote = new WM(1,0,1);
int MyInt = 0;
int err=0;
while(err>-1 && strcmp(Rappel, "$500,500!")!=0)
{
while(WiiMote->eventHappened()==0); //detection d'evenements
std::vector<double> Boutons = WiiMote->getEvent(0);
std::vector<double> Axes = WiiMote->getAccData(0);
MyInt = Boutons[1];
printf(" \r2 : %f 3 : %f",Axes[2], Axes[3]);
[...] |
Partager