-
Notifications
You must be signed in to change notification settings - Fork 0
/
wiiRemote.txt
42 lines (36 loc) · 966 Bytes
/
wiiRemote.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <cstdlib>
#include <iostream>
#include <conio.h>
using namespace std;
int main()
char a = getch();
switch(a)
{
case 'q':
cout << "q" << endl;
break;
case 'w':
cout << "w" << endl;
break;
case 'e':
cout << "e" << endl;
break;
case 'r':
cout << "r" << endl;
break;
case 't':
cout << "t" << endl;
break;
case 'y':
cout << "y" << endl;
break;
}
Sleep(500);
return 0;
}
Key.Q = -90 < Wiimote.SteeringAngle < -60
Key.W = -60 <= Wiimote.SteeringAngle < -30
Key.E = -30 <= Wiimote.SteeringAngle < -10
Key.R = 10 <= Wiimote.SteeringAngle < 30
Key.T = 30 <= Wiimote.SteeringAngle < 60
Key.Y = 60 <= Wiimote.SteeringAngle < 90