64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
i = 0;
} else
[OFStdOut writeString: @" "];
}
[OFStdOut setForegroundColor: [OFColor gray]];
[OFStdOut writeString: @"\n"];
for (i = 0; i < controller.numAnalogSticks; i++) {
OFPoint position = [controller
positionOfAnalogStickWithIndex: i];
[OFStdOut writeFormat: @"(%5.2f, %5.2f) ",
position.x, position.y];
}
[OFStdOut writeString: @"\n"];
}
[OFThread sleepForTimeInterval: 0.1];
}
}
|
|
|
|
>
>
>
>
>
>
|
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
i = 0;
} else
[OFStdOut writeString: @" "];
}
[OFStdOut setForegroundColor: [OFColor gray]];
[OFStdOut writeString: @"\n"];
if (controller.hasLeftAnalogStick) {
OFPoint position =
controller.leftAnalogStickPosition;
[OFStdOut writeFormat: @"(%5.2f, %5.2f) ",
position.x, position.y];
}
if (controller.hasRightAnalogStick) {
OFPoint position =
controller.rightAnalogStickPosition;
[OFStdOut writeFormat: @"(%5.2f, %5.2f)",
position.x, position.y];
}
[OFStdOut writeString: @"\n"];
}
[OFThread sleepForTimeInterval: 0.1];
}
}
|