mirror of
https://github.com/AkiChase/scrcpy-mask
synced 2024-11-14 05:21:42 +08:00
fix(KeyCommon): useless pointerId of KeyMacro
This commit is contained in:
parent
a20ce2cef8
commit
6cd83e93fd
@ -222,7 +222,7 @@ function showSetting() {
|
|||||||
@update:value="keyboardStore.edited = true"
|
@update:value="keyboardStore.edited = true"
|
||||||
/>
|
/>
|
||||||
</NFormItem>
|
</NFormItem>
|
||||||
<NFormItem label="触点ID">
|
<NFormItem v-if="keyMapping.type !== 'Macro'" label="触点ID">
|
||||||
<NInputNumber
|
<NInputNumber
|
||||||
v-model:value="keyMapping.pointerId"
|
v-model:value="keyMapping.pointerId"
|
||||||
:min="0"
|
:min="0"
|
||||||
|
@ -1179,7 +1179,7 @@ function applyKeyMappingConfigShortcuts(
|
|||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.error("Invalid item type: ", item.type);
|
console.error("Invalid item type: ", item);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,8 +66,13 @@ type KeyMacroList = Array<{
|
|||||||
type: KeyMacroType;
|
type: KeyMacroType;
|
||||||
args: KeyMacroArgs;
|
args: KeyMacroArgs;
|
||||||
}> | null;
|
}> | null;
|
||||||
interface KeyMacro extends Key {
|
|
||||||
|
interface KeyMacro {
|
||||||
|
type: "Macro";
|
||||||
key: string;
|
key: string;
|
||||||
|
note: string;
|
||||||
|
posX: number;
|
||||||
|
posY: number;
|
||||||
macro: {
|
macro: {
|
||||||
down: KeyMacroList;
|
down: KeyMacroList;
|
||||||
loop: KeyMacroList;
|
loop: KeyMacroList;
|
||||||
|
Loading…
Reference in New Issue
Block a user