"use strict";(self["webpackChunkwavelovers"]=self["webpackChunkwavelovers"]||[]).push([[950],{950: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(1746),l=e(4246),m=e(3375),g=e(9808),c=e(7139);const r={class:"output-gamepad"},v={class:"gamepad-group"};function _(a,t,e,n,u,i){return(0,s.wg)(),(0,s.iD)("div",r,[(0,s._)("h3",null,"#"+(0,c.zw)(a.gamepad.unit.index+1)+". "+(0,c.zw)(a.gamepad.unit.id),1),(0,s._)("div",v,[(0,s._)("div",null,[(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[0].value?"pressed":""])},"A: "+(0,c.zw)(a.gamepad.unit.buttons[0].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[1].value?"pressed":""])},"B: "+(0,c.zw)(a.gamepad.unit.buttons[1].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[2].value?"pressed":""])},"X: "+(0,c.zw)(a.gamepad.unit.buttons[2].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[3].value?"pressed":""])},"Y: "+(0,c.zw)(a.gamepad.unit.buttons[3].value.toFixed(2)),3)]),(0,s._)("div",null,[(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[4].value?"pressed":""])},"LB: "+(0,c.zw)(a.gamepad.unit.buttons[4].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[5].value?"pressed":""])},"RB: "+(0,c.zw)(a.gamepad.unit.buttons[5].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[6].value?"pressed":""])},"LT: "+(0,c.zw)(a.gamepad.unit.buttons[6].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[7].value?"pressed":""])},"RT: "+(0,c.zw)(a.gamepad.unit.buttons[7].value.toFixed(2)),3)]),(0,s._)("div",null,[(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[8].value?"pressed":""])},"Back: "+(0,c.zw)(a.gamepad.unit.buttons[8].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[9].value?"pressed":""])},"Start: "+(0,c.zw)(a.gamepad.unit.buttons[9].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[10].value?"pressed":""])},"Left Stick: "+(0,c.zw)(a.gamepad.unit.buttons[10].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[11].value?"pressed":""])},"Right Stick: "+(0,c.zw)(a.gamepad.unit.buttons[11].value.toFixed(2)),3)]),(0,s._)("div",null,[(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[12].value?"pressed":""])},"Forward: "+(0,c.zw)(a.gamepad.unit.buttons[12].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[13].value?"pressed":""])},"Backward: "+(0,c.zw)(a.gamepad.unit.buttons[13].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[14].value?"pressed":""])},"Left: "+(0,c.zw)(a.gamepad.unit.buttons[14].value.toFixed(2)),3),(0,s._)("span",{class:(0,c.C_)([1===a.gamepad.unit.buttons[15].value?"pressed":""])},"Right: "+(0,c.zw)(a.gamepad.unit.buttons[15].value.toFixed(2)),3)]),(0,s._)("div",null,[(0,s._)("span",null,"Left Stick X: "+(0,c.zw)(a.gamepad.unit.axes[0]?a.gamepad.unit.axes[0].toFixed(2):"missing"),1),(0,s._)("span",null,"Left Stick Y: "+(0,c.zw)(a.gamepad.unit.axes[1]?a.gamepad.unit.axes[1].toFixed(2):"missing"),1),(0,s._)("span",null,"Right Stick X: "+(0,c.zw)(a.gamepad.unit.axes[2]?a.gamepad.unit.axes[2].toFixed(2):"missing"),1),(0,s._)("span",null,"Right Stick Y: "+(0,c.zw)(a.gamepad.unit.axes[3]?a.gamepad.unit.axes[3].toFixed(2):"missing"),1)])]),(0,s._)("span",null,"Vibration Actuator: "+(0,c.zw)(a.gamepad.unit.vibrationActuator?"Available":"missing"),1)])}var b=(0,s.aZ)({name:"DiagnosticItem",props:{gamepad:{type:Object},timestamp:{type:Number}}}),w=e(89);const x=(0,w.Z)(b,[["render",_]]);var z=x,F=(0,s.aZ)({name:"AppDiagnostic",components:{DiagnosticItem:z,NavigationList:l.Z,GamepadList:m.Z,MessageItem:g.Z},data:()=>({timestamp:0,interval:0}),computed:{gamepads:function(){const a=this.timestamp,t=o.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 C=(0,w.Z)(F,[["render",d]]);var h=C,k=(0,s.aZ)({name:"DiagnosticView",components:{AppDiagnostic:h}});const f=(0,w.Z)(k,[["render",u]]);var D=f}}]); //# sourceMappingURL=950.addae715.js.map