|
@@ -27,7 +27,6 @@ const isLogin = ref(false)
|
|
|
const remoteVideo = ref()
|
|
const remoteVideo = ref()
|
|
|
const showLoading = ref(true)
|
|
const showLoading = ref(true)
|
|
|
const winMaxOrMin = ref(false)
|
|
const winMaxOrMin = ref(false)
|
|
|
-const contrlState = ref(false)
|
|
|
|
|
const micState = ref(false)
|
|
const micState = ref(false)
|
|
|
const audioState = ref(false)
|
|
const audioState = ref(false)
|
|
|
const audioStateNum = ref(0)
|
|
const audioStateNum = ref(0)
|
|
@@ -55,10 +54,10 @@ function countContrlData(v: number) {
|
|
|
const num = parseInt(v.toString(), 10)
|
|
const num = parseInt(v.toString(), 10)
|
|
|
if (conctrlNum.value % 2) {
|
|
if (conctrlNum.value % 2) {
|
|
|
// 倒档
|
|
// 倒档
|
|
|
- return num <= 128 ? 0 : Math.abs((255 - num) - 128)
|
|
|
|
|
|
|
+ return Math.floor(num / 2)
|
|
|
}
|
|
}
|
|
|
// 前进
|
|
// 前进
|
|
|
- return num <= 128 ? 255 : ((255 - num) + 128)
|
|
|
|
|
|
|
+ return Math.floor(((128 - (num / 2)) + 128))
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 关闭
|
|
// 关闭
|
|
@@ -229,12 +228,6 @@ window.$electron.send('close-loading')
|
|
|
/>
|
|
/>
|
|
|
<div class="marke">
|
|
<div class="marke">
|
|
|
<div class="marke-left">
|
|
<div class="marke-left">
|
|
|
- <!-- 手柄状态 -->
|
|
|
|
|
- <Icon
|
|
|
|
|
- name="gemePad"
|
|
|
|
|
- :size="30"
|
|
|
|
|
- :color="contrlState ? '#00CED1' : 'rgba(0, 0, 0, 0.3)'"
|
|
|
|
|
- />
|
|
|
|
|
<!-- 音频状态 -->
|
|
<!-- 音频状态 -->
|
|
|
<Record
|
|
<Record
|
|
|
class="marke-audio"
|
|
class="marke-audio"
|