JoyStick.js是一个纯JavaScript库,可以创建一个触摸式屏幕操纵杆为您的web应用程序。初始化var joy = new JoyStick('joyDiv');还有很多扩展参数var joy = new JoyStick('joyDiv',{ // The ID of canvas element title: 'joystick', // width/height width: undefined, height: undefined, // Internal color of Stick internalFillColor: '#00AA00', // Border width of Stick internalLineWidth: 2, // Border color of Stick internalStrokeColor: '#003300', // External reference circonference width externalLineWidth: 2, //External reference circonference color externalStrokeColor: '#008000', // Sets the behavior of the stick autoReturnToCenter: true });获取位置和方向joy.GetPosX(); joy.GetPosY(); joy.GetDir(); joy.GetX(); joy.GetY();
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)