69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
|
case BTN_MODE:
return @"Home";
case BTN_TL:
return @"SL";
case BTN_TL2:
return @"SR";
}
} else if (vendorID == OHVendorIDNintendo &&
productID == OHProductIDN64Controller) {
switch (button) {
case BTN_SELECT:
return @"C-Pad Up";
case BTN_X:
return @"C-Pad Down";
case BTN_Y:
return @"C-Pad Left";
case BTN_C:
return @"C-Pad Right";
case BTN_TL:
return @"L";
case BTN_TR:
return @"R";
case BTN_TL2:
return @"Z";
case BTN_TR2:
return @"ZR";
case BTN_MODE:
return @"Home";
case BTN_Z:
return @"Capture";
}
}
switch (button) {
case BTN_A:
return @"A";
case BTN_B:
return @"B";
|