function Joystick12() {
this._name = function() {
return "Joystick";
};
this._bounds = function () {
return { x: -20, y: -10, width: 40, height: 20 };
};
this._print = function(g, options) {
g.drawCircle(- 20, 0, 1);
g.drawCircle(+ 10, + 10, 1);
g.drawCircle(+ 10, - 10, 1);
//g.drawRectangle(- 20, - 10, 40, 20);
if (options.front) {
g.drawRectangle(-20, 9, 10, 11);//調整中
} else {
}
if (!options.print) {
g.drawRectangle(- 40, - 20, 80, 40);//調整中
g.drawCircle(- 20, 0, 2);
g.drawCircle(+ 10, + 10, 2);
g.drawCircle(+ 10, - 10, 2);
g.drawText(this._name(), - 20, + 20);//調整中
}
};
}