virtual-game-joystick
v0.0.1
Published
For mobile virtual joystick, you can use it to trigger keyboard events, suitable for all kinds of HTML game emulators.移动端虚拟摇杆,可用于触发键盘事件,适用于所有HTML游戏模拟器。
Downloads
2
Readme
virtual game joystick 虚拟游戏摇杆
arguments 配置参数
/**
* @param {string} id Element id 元素的id
* @param {number} up ASCII code
* @param {number} right
* @param {number} left
* @param {number} down
* @param {number} radius Moving radius 元素的移动半径
*/
example 示例
joystickInit("rocker", 87, 68, 83, 65, 100);