wavelovers/docs/js/582.c3117d29.js

2 lines
5.2 KiB
JavaScript
Raw Normal View History

2022-08-28 14:21:41 +03:00
"use strict";(self["webpackChunkwavelovers"]=self["webpackChunkwavelovers"]||[]).push([[582],{6259:function(a,t,e){e.d(t,{Z:function(){return p}});var s=e(3396),n=e(1746),u=(0,s.aZ)({name:"ComputedGamepads",data:()=>({timestamp:0,interval:0}),computed:{gamepads:function(){const a=this.timestamp,t=n.Z.getters.gamepads;return t.forEach((t=>{t.interval=a})),t}},methods:{updateComputed:function(){this.timestamp=Date.now()}},mounted(){this.interval=setInterval(this.updateComputed,1)},unmounted(){clearInterval(this.interval)}});const i=u;var p=i},6582:function(a,t,e){e.r(t),e.d(t,{default:function(){return D}});var s=e(3396);const n=(0,s._)("h1",{class:"visually-hidden"},"Wavelovers <20> Diagnostic",-1);function u(a,t,e,u,i,p){const d=(0,s.up)("AppDiagnostic");return(0,s.wg)(),(0,s.iD)(s.HY,null,[n,(0,s.Wm)(d)],64)}const i={key:0,class:"content-item"},p=(0,s.Uk)("Press any gamepad button or connect a new gamepad to vibrate.");function d(a,t,e,n,u,d){const o=(0,s.up)("NavigationList"),l=(0,s.up)("DiagnosticItem"),m=(0,s.up)("GamepadList"),g=(0,s.up)("MessageItem");return(0,s.wg)(),(0,s.iD)(s.HY,null,[(0,s.Wm)(o),a.gamepads.length>0?((0,s.wg)(),(0,s.iD)("div",i,[((0,s.wg)(!0),(0,s.iD)(s.HY,null,(0,s.Ko)(a.gamepads,(t=>((0,s.wg)(),(0,s.j4)(l,{key:t.id,gamepad:t,timestamp:a.timestamp},null,8,["gamepad","timestamp"])))),128))])):(0,s.kq)("",!0),a.gamepads.length>0?((0,s.wg)(),(0,s.j4)(m,{key:1,gamepads:a.gamepads},null,8,["gamepads"])):((0,s.wg)(),(0,s.j4)(g,{key:2},{default:(0,s.w5)((()=>[p])),_:1}))],64)}var o=e(4246),l=e(3375),m=e(9808),g=e(7139);const r={class:"output-gamepad"},c={class:"gamepad-group"};function v(a,t,e,n,u,i){return(0,s.wg)(),(0,s.iD)("div",r,[(0,s._)("h3",null,"#"+(0,g.zw)(a.gamepad.unit.index+1)+". "+(0,g.zw)(a.gamepad.unit.id),1),(0,s._)("div",c,[(0,s._)("div",null,[(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[0].value?"pressed":""])},"A: "+(0,g.zw)(a.gamepad.unit.buttons[0].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[1].value?"pressed":""])},"B: "+(0,g.zw)(a.gamepad.unit.buttons[1].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[2].value?"pressed":""])},"X: "+(0,g.zw)(a.gamepad.unit.buttons[2].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[3].value?"pressed":""])},"Y: "+(0,g.zw)(a.gamepad.unit.buttons[3].value.toFixed(2)),3)]),(0,s._)("div",null,[(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[4].value?"pressed":""])},"LB: "+(0,g.zw)(a.gamepad.unit.buttons[4].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[5].value?"pressed":""])},"RB: "+(0,g.zw)(a.gamepad.unit.buttons[5].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[6].value?"pressed":""])},"LT: "+(0,g.zw)(a.gamepad.unit.buttons[6].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[7].value?"pressed":""])},"RT: "+(0,g.zw)(a.gamepad.unit.buttons[7].value.toFixed(2)),3)]),(0,s._)("div",null,[(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[8].value?"pressed":""])},"Back: "+(0,g.zw)(a.gamepad.unit.buttons[8].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[9].value?"pressed":""])},"Start: "+(0,g.zw)(a.gamepad.unit.buttons[9].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[10].value?"pressed":""])},"Left Stick: "+(0,g.zw)(a.gamepad.unit.buttons[10].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[11].value?"pressed":""])},"Right Stick: "+(0,g.zw)(a.gamepad.unit.buttons[11].value.toFixed(2)),3)]),(0,s._)("div",null,[(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[12].value?"pressed":""])},"Forward: "+(0,g.zw)(a.gamepad.unit.buttons[12].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[13].value?"pressed":""])},"Backward: "+(0,g.zw)(a.gamepad.unit.buttons[13].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[14].value?"pressed":""])},"Left: "+(0,g.zw)(a.gamepad.unit.button
//# sourceMappingURL=582.c3117d29.js.map