Przeglądaj źródła

Fix a bug in linux mouse handling which prevented middle/right button being detected

Daniele Bartolini 12 lat temu
rodzic
commit
bda390acb2
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/os/linux/Input.cpp

+ 2 - 2
src/os/linux/Input.cpp

@@ -211,13 +211,13 @@ void event_loop()
 					}
 					}
 					case Button2:
 					case Button2:
 					{
 					{
-						data_button[3].int_value = 1;
+						data_button[2].int_value = 1;
 						push_event(oset_type, data_button[0], data_button[1], data_button[2], data_button[3]);
 						push_event(oset_type, data_button[0], data_button[1], data_button[2], data_button[3]);
 						break;
 						break;
 					}
 					}
 					case Button3:
 					case Button3:
 					{
 					{
-						data_button[3].int_value = 2;
+						data_button[2].int_value = 2;
 						push_event(oset_type, data_button[0], data_button[1], data_button[2], data_button[3]);
 						push_event(oset_type, data_button[0], data_button[1], data_button[2], data_button[3]);
 						break;
 						break;
 					}
 					}