响应式游戏手柄:在单个API下处理键盘,游戏手柄和触摸控件:joystick:

时间:2024-02-25 06:11:28
【文件属性】:

文件名称:响应式游戏手柄:在单个API下处理键盘,游戏手柄和触摸控件:joystick:

文件大小:2.3MB

文件格式:ZIP

更新时间:2024-02-25 06:11:28

javascript game front-end library mobile

响应式游戏手柄 使用单个API(<5KB)在浏览器中处理键盘,游戏板和触摸控件。 目录 快速开始 这是安装和使用响应式游戏手柄的快速Tl; DR : npm install --save responsive-gamepad import { ResponsiveGamepad } from 'responsive-gamepad'; ResponsiveGamepad.enable(); ResponsiveGamepad.getState(); 请参阅“部分,以了解“标准”控制器上的响应式游戏手柄按键。 使用responsive-gamepad项目 使用AssemblyScri


【文件预览】:
responsive-gamepad-master
----.gitignore(948B)
----package.json(2KB)
----package-lock.json(244KB)
----.travis.yml(132B)
----assets()
--------readmeStandardControllerLayout.jpg(50KB)
--------materialDpad.svg(265B)
--------responsiveGamepadDemo.gif(2.43MB)
--------materialDash.svg(181B)
--------materialButton.svg(288B)
----LICENSE(11KB)
----rollup.config.js(2KB)
----README.md(10KB)
----demo()
--------examplePlugin.js(329B)
--------analog.js(542B)
--------dashButton.js(388B)
--------touchpad.js(2KB)
--------index.js(3KB)
--------dpad.js(415B)
--------index.html(636B)
--------state.js(882B)
--------index.css(939B)
--------circleButton.js(497B)
----design()
--------usePlugin.js(557B)
--------disableKeyboardSpecialKeys.js(372B)
--------gamepadMultiplePlayers.js(262B)
--------createPlugin.js(485B)
--------inputs.js(174B)
--------README.md(241B)
--------enable.js(315B)
--------disableKeyboardInputElement.js(293B)
--------state.js(202B)
--------simpleDesktop.js(229B)
--------respondToKeyEvent.js(714B)
--------keymap.js(661B)
--------multipleInputs.js(348B)
--------simpleMobile.js(874B)
----lib()
--------touchInput()
--------index.js(6KB)
--------inputSource.js(317B)
--------gamepad()
--------constants.js(1KB)
--------keymap.js(6KB)
--------keyboard()

网友评论