Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
eva-plugin-joystick
Advanced tools
基于 Eva.js 的虚拟摇杆
注意事项:
待解决
npm i eva-plugin-joystick
import { Joystick } from 'eva-plugin-joystick'
const go = new GameObject('joystick')
const joystick = go.addComponent(new Joystick({
followPointer: {
open: true,
area: {
x: 0, y: 0,
width: 400,
height: 600
}
}
}))
joystick.on(JOYSTICK_EVENT.Begin, (data) => {
console.log('begin', data)
})
joystick.on(JOYSTICK_EVENT.Drag, (data) => {
console.log('drag', data)
})
joystick.on(JOYSTICK_EVENT.End, (data) => {
console.log('end', data)
})
game.scene.addChild(go)
limitRadius number
optional
摇杆的半径,限制操作杆的移动范围
boxImageResource string
optional
背景图片
boxRadius number
optional
背景图片的半径
btnImageResource string
optional
操作杆的图片
btnRadius number
optional
操作杆图片的半径
followPointer object
optional
手指跟随
open boolean
是否打开手指跟随
area object
request
手指跟随生效的范围 必填
number
number
number
nubmer
joystick.on(JOYSTICK_EVENT.Begin, (data) => {
console.log('begin', data)
data.x
data.y
})
参数为摇杆移动的二维向量,-1,1之间
JOYSTICK_EVENT.Begin
摇杆开始事件
JOYSTICK_EVENT.Drag
摇杆拖拽事件
JOYSTICK_EVENT.End
摇杆结束事件
FAQs
基于 Eva.js 的虚拟摇杆
The npm package eva-plugin-joystick receives a total of 0 weekly downloads. As such, eva-plugin-joystick popularity was classified as not popular.
We found that eva-plugin-joystick demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.