1 /* 2 * Copyright 2019, Haiku, Inc. 3 * Distributed under the terms of the MIT License. 4 * 5 * Author: 6 * Preetpal Kaur <preetpalok123@gmail.com> 7 */ 8 9 10 #ifndef INPUT_MOUSE_H 11 #define INPUT_MOUSE_H 12 13 14 #include <Box.h> 15 #include <Button.h> 16 #include <Input.h> 17 #include <View.h> 18 19 #include "MouseSettings.h" 20 #include "MouseView.h" 21 #include "SettingsView.h" 22 23 #define MOUSE_SETTINGS 'Mss' 24 25 class DeviceListView; 26 27 28 class InputMouse : public BView { 29 public: 30 InputMouse(BInputDevice* dev, MouseSettings* settings); 31 virtual ~InputMouse(); 32 void SetMouseType(int32 type); 33 void MessageReceived(BMessage* message); 34 private: 35 36 typedef BBox inherited; 37 38 SettingsView* fSettingsView; 39 MouseView* fMouseView; 40 BButton* fDefaultsButton; 41 BButton* fRevertButton; 42 MouseSettings* fSettings; 43 }; 44 45 #endif /* INPUT_MOUSE_H */ 46