@@ -17,6 +17,17 @@ export default defineComponent({
1717 setup ( props , { emit } ) {
1818 const { t, te } = useI18n ( ) ;
1919
20+ const optionsIoKeyMap = [
21+ { label : t ( 'mod.adxHid.disabled' ) , value : 'None' } ,
22+ { label : t ( 'mod.adxHid.select1P' ) , value : 'Select1P' } ,
23+ { label : t ( 'mod.adxHid.select2P' ) , value : 'Select2P' } ,
24+ { label : t ( 'mod.adxHid.service' ) , value : 'Service' } ,
25+ { label : t ( 'mod.adxHid.test' ) , value : 'Test' } ,
26+ ] ;
27+
28+ const optionsSoundChannel = [ 'None' , 'P1SpeakerLeft' , 'P1SpeakerRight' , 'P1HeadphoneLeft' , 'P1HeadphoneRight' , 'P2SpeakerLeft' , 'P2SpeakerRight' , 'P2HeadphoneLeft' , 'P2HeadphoneRight' ]
29+ . map ( channel => ( { label : t ( 'mod.soundChannel.' + channel ) , value : channel } ) ) ;
30+
2031 const comment = computed ( ( ) => {
2132 const localeKey = 'mod.commentOverrides.' + props . entry . path ! . replace ( / \. / g, '_' ) ;
2233 if ( te ( localeKey ) ) {
@@ -59,6 +70,12 @@ export default defineComponent({
5970 return < NSelect v-model :value = { props . entryState . value } options = { Object . entries ( KeyCodeName ) . map ( ( [ label , value ] ) => ( { label, value } ) ) } /> ;
6071 case 'AquaMai.Config.Types.KeyCodeID' :
6172 return < NSelect v-model :value = { props . entryState . value } options = { Object . entries ( KeyCodeID ) . map ( ( [ label , value ] ) => ( { label, value} ) ) } /> ;
73+ case 'AquaMai.Config.Types.IOKeyMap' :
74+ return < NSelect v-model :value = { props . entryState . value } options = { optionsIoKeyMap } /> ;
75+ case 'AquaMai.Config.Types.AdxKeyMap' :
76+ return < NSelect v-model :value = { props . entryState . value } options = { optionsIoKeyMap } /> ;
77+ case 'AquaMai.Config.Types.SoundChannel' :
78+ return < NSelect v-model :value = { props . entryState . value } options = { optionsSoundChannel } /> ;
6279 }
6380 return t ( 'mod.unsupportedType' , { type : props . entry . fieldType } ) ;
6481 } ) ( ) }
0 commit comments