@@ -24,7 +24,7 @@ public partial class MainWindow : Window
2424 {
2525
2626 // Version
27- public string Version = "0.1.5.4 Devocub Edition" ;
27+ public string Version = "0.1.5.5 Devocub Edition" ;
2828
2929 // Console stuff
3030 private List < string > commandHistory ;
@@ -174,6 +174,8 @@ public MainWindow()
174174 comboBoxButton2 . Items . Add ( "Mouse " + i ) ;
175175 comboBoxButton3 . Items . Add ( "Mouse " + i ) ;
176176 }
177+ comboBoxButton2 . Items . Add ( "Mouse Wheel" ) ;
178+ comboBoxButton3 . Items . Add ( "Mouse Wheel" ) ;
177179 comboBoxButton1 . SelectedIndex = 0 ;
178180 comboBoxButton2 . SelectedIndex = 0 ;
179181 comboBoxButton3 . SelectedIndex = 0 ;
@@ -463,6 +465,7 @@ private void LoadSettingsFromConfiguration()
463465 //
464466 if ( config . ButtonMap . Count ( ) == 3 )
465467 {
468+ textMouseWheelSpeed . Text = Utils . GetNumberString ( config . mouseWheelSpeed ) ;
466469 comboBoxButton1 . SelectedIndex = config . ButtonMap [ 0 ] ;
467470 comboBoxButton2 . SelectedIndex = config . ButtonMap [ 1 ] ;
468471 comboBoxButton3 . SelectedIndex = config . ButtonMap [ 2 ] ;
@@ -671,6 +674,8 @@ private void UpdateSettingsToConfiguration()
671674
672675
673676 // Button map
677+ if ( Utils . ParseNumber ( textMouseWheelSpeed . Text , out val ) )
678+ config . mouseWheelSpeed = ( int ) val ;
674679 config . ButtonMap [ 0 ] = comboBoxButton1 . SelectedIndex ;
675680 config . ButtonMap [ 1 ] = comboBoxButton2 . SelectedIndex ;
676681 config . ButtonMap [ 2 ] = comboBoxButton3 . SelectedIndex ;
@@ -1804,6 +1809,9 @@ private void SendSettingsToDriver()
18041809 driver . SendCommand ( "ButtonMap " + String . Join ( " " , config . ButtonMap ) ) ;
18051810 }
18061811
1812+ // Mouse Wheel Speed
1813+ driver . SendCommand ( "MouseWheelSpeed " + Utils . GetNumberString ( config . mouseWheelSpeed ) ) ;
1814+
18071815 // Smoothing filter
18081816 if ( config . SmoothingEnabled )
18091817 {
0 commit comments