"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 � 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.buttons[14].value.toFixed(2)),3),(0,s._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[15].value?"pressed":""])},"Right: "+(0,g.zw)(a.gamepad.unit.buttons[15].value.toFixed(2)),3)]),(0,s._)("div",null,[(0,s._)("span",null,"Left Stick X: "+(0,g.zw)(a.gamepad.unit.axes[0]?a.gamepad.unit.axes[0].toFixed(2):"missing"),1),(0,s._)("span",null,"Left Stick Y: "+(0,g.zw)(a.gamepad.unit.axes[1]?a.gamepad.unit.axes[1].toFixed(2):"missing"),1),(0,s._)("span",null,"Right Stick X: "+(0,g.zw)(a.gamepad.unit.axes[2]?a.gamepad.unit.axes[2].toFixed(2):"missing"),1),(0,s._)("span",null,"Right Stick Y: "+(0,g.zw)(a.gamepad.unit.axes[3]?a.gamepad.unit.axes[3].toFixed(2):"missing"),1)])]),(0,s._)("span",null,"Vibration Actuator: "+(0,g.zw)(a.gamepad.unit.vibrationActuator?"Available":"missing"),1)])}var _=(0,s.aZ)({name:"DiagnosticItem",props:{gamepad:{type:Object},timestamp:{type:Number}}}),b=e(89);const w=(0,b.Z)(_,[["render",v]]);var x=w,z=e(6259),C=(0,s.aZ)({name:"AppDiagnostic",mixins:[z.Z],components:{DiagnosticItem:x,NavigationList:o.Z,GamepadList:l.Z,MessageItem:m.Z}});const F=(0,b.Z)(C,[["render",d]]);var h=F,f=(0,s.aZ)({name:"DiagnosticView",components:{AppDiagnostic:h}});const k=(0,b.Z)(f,[["render",u]]);var D=k}}]); //# sourceMappingURL=582.c3117d29.js.map