wavelovers/docs/js/114.98880cb6.js

2 lines
6.9 KiB
JavaScript
Raw Normal View History

"use strict";(self["webpackChunkwavelovers"]=self["webpackChunkwavelovers"]||[]).push([[114],{1682:function(a,t,e){e.d(t,{Z:function(){return v}});var n=e(3396),s=e(7139);const i={class:"content-item device-list"};function u(a,t,e,u,o,d){const p=(0,n.up)("GamepadItem");return(0,n.wg)(),(0,n.iD)("div",i,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.gamepads,(a=>((0,n.wg)(),(0,n.j4)(p,{key:a.id,textContent:(0,s.zw)(a.unit.id)},null,8,["textContent"])))),128))])}const o={class:"list-item"};function d(a,t,e,s,i,u){return(0,n.wg)(),(0,n.iD)("div",o)}var p=(0,n.aZ)({name:"GamepadItem"}),l=e(89);const m=(0,l.Z)(p,[["render",d]]);var g=m,r=(0,n.aZ)({name:"GamepadList",props:{gamepads:{type:Array}},components:{GamepadItem:g}});const c=(0,l.Z)(r,[["render",u]]);var v=c},322:function(a,t,e){e.d(t,{Z:function(){return p}});var n=e(3396);const s={class:"content-item message"};function i(a,t,e,i,u,o){return(0,n.wg)(),(0,n.iD)("div",s,[(0,n._)("span",null,[(0,n.WI)(a.$slots,"default")])])}var u=(0,n.aZ)({name:"MessageItem"}),o=e(89);const d=(0,o.Z)(u,[["render",i]]);var p=d},9100:function(a,t,e){e.d(t,{Z:function(){return r}});var n=e(3396);const s={class:"content-item navigation-list"},i=(0,n.Uk)("Patterns"),u=(0,n.Uk)("Custom"),o=(0,n.Uk)("Manual"),d=(0,n.Uk)("Diagnostic");function p(a,t,e,p,l,m){const g=(0,n.up)("router-link");return(0,n.wg)(),(0,n.iD)("div",s,[(0,n.Wm)(g,{to:"/",class:"navigation-list__item"},{default:(0,n.w5)((()=>[i])),_:1}),(0,n.Wm)(g,{to:"/custom",class:"navigation-list__item"},{default:(0,n.w5)((()=>[u])),_:1}),(0,n.Wm)(g,{to:"/manual",class:"navigation-list__item"},{default:(0,n.w5)((()=>[o])),_:1}),(0,n.Wm)(g,{to:"/diagnostic",class:"navigation-list__item"},{default:(0,n.w5)((()=>[d])),_:1})])}var l=(0,n.aZ)({name:"NavigationList"}),m=e(89);const g=(0,m.Z)(l,[["render",p]]);var r=g},6259:function(a,t,e){e.d(t,{Z:function(){return o}});var n=e(3396),s=e(1746),i=(0,n.aZ)({name:"ComputedGamepads",data:()=>({timestamp:0,interval:0}),computed:{gamepads:function(){const a=this.timestamp,t=s.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 u=i;var o=u},2114:function(a,t,e){e.r(t),e.d(t,{default:function(){return D}});var n=e(3396);const s=(0,n._)("h1",{class:"visually-hidden"},"Wavelovers <20> Diagnostic",-1);function i(a,t,e,i,u,o){const d=(0,n.up)("AppDiagnostic");return(0,n.wg)(),(0,n.iD)(n.HY,null,[s,(0,n.Wm)(d)],64)}const u={key:0,class:"content-item"},o=(0,n.Uk)("Press any gamepad button or connect a new gamepad to vibrate.");function d(a,t,e,s,i,d){const p=(0,n.up)("NavigationList"),l=(0,n.up)("DiagnosticItem"),m=(0,n.up)("GamepadList"),g=(0,n.up)("MessageItem");return(0,n.wg)(),(0,n.iD)(n.HY,null,[(0,n.Wm)(p),a.gamepads.length>0?((0,n.wg)(),(0,n.iD)("div",u,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(a.gamepads,(t=>((0,n.wg)(),(0,n.j4)(l,{key:t.id,gamepad:t,timestamp:a.timestamp},null,8,["gamepad","timestamp"])))),128))])):(0,n.kq)("",!0),a.gamepads.length>0?((0,n.wg)(),(0,n.j4)(m,{key:1,gamepads:a.gamepads},null,8,["gamepads"])):((0,n.wg)(),(0,n.j4)(g,{key:2},{default:(0,n.w5)((()=>[o])),_:1}))],64)}var p=e(9100),l=e(1682),m=e(322),g=e(7139);const r={class:"output-gamepad"},c={class:"gamepad-group"};function v(a,t,e,s,i,u){return(0,n.wg)(),(0,n.iD)("div",r,[(0,n._)("h3",null,"#"+(0,g.zw)(a.gamepad.unit.index+1)+". "+(0,g.zw)(a.gamepad.unit.id),1),(0,n._)("div",c,[(0,n._)("div",null,[(0,n._)("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,n._)("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,n._)("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,n._)("span",{class:(0,g.C_)([1===a.gamepad.unit.buttons[3].value?"pressed":""])},"Y: "+(0,g.zw)(a.gamepad.unit.bu
//# sourceMappingURL=114.98880cb6.js.map