@@ -166,8 +166,8 @@ private void SendVibrate_Click(object sender, RoutedEventArgs e)
166166 {
167167 _client . SendDeviceMessage ( dev ,
168168 new VibrateCmd ( dev . Index ,
169- new List < VibrateCmd . VibrateIndex >
170- { new VibrateCmd . VibrateIndex ( i , VibrateSpeed . Value ) } ,
169+ new List < VibrateCmd . VibrateSubcommand >
170+ { new VibrateCmd . VibrateSubcommand ( i , VibrateSpeed . Value ) } ,
171171 _client . nextMsgId ) ) ;
172172 }
173173 }
@@ -198,8 +198,8 @@ private void SendRotate_Click(object sender, RoutedEventArgs e)
198198 bool clockwise = RotateSpeed . Value > 0 ;
199199 _client . SendDeviceMessage ( dev ,
200200 new RotateCmd ( dev . Index ,
201- new List < RotateCmd . RotateIndex >
202- { new RotateCmd . RotateIndex ( i , RotateSpeed . Value * ( clockwise ? 1 : - 1 ) , clockwise ) } ,
201+ new List < RotateCmd . RotateSubcommand >
202+ { new RotateCmd . RotateSubcommand ( i , RotateSpeed . Value * ( clockwise ? 1 : - 1 ) , clockwise ) } ,
203203 _client . nextMsgId ) ) ;
204204 }
205205 }
@@ -222,9 +222,11 @@ private void SendLinear2_Click(object sender, RoutedEventArgs e)
222222 if ( dev . AllowedMessages . ContainsKey ( "FleshlightLaunchFW12Cmd" ) )
223223 {
224224 _client . SendDeviceMessage ( dev ,
225- new LinearCmd ( dev . Index , new List < LinearCmd . VectorIndex > ( )
225+ new LinearCmd ( dev . Index , new List < LinearCmd . VectorSubcommands > ( )
226226 {
227- new LinearCmd . VectorIndex ( 0 , Convert . ToUInt32 ( LinearDuration . Text ) , Linear2Position . Value ) ,
227+ new LinearCmd . VectorSubcommands ( 0 ,
228+ Convert . ToUInt32 ( LinearDuration . Text ) ,
229+ Linear2Position . Value ) ,
228230 } , _client . nextMsgId ) ) ;
229231 }
230232 }
0 commit comments