Fix Bug: Remove Wacom device from Devicelist
I make some changes in the wacom input server to solve the bug mentioned above. I don't have wacom and unable to buy it duw to COVID-19. Can anyone please test the code. Change-Id: I27a7353cafd495f89d7ba7f8a6f4fa7e8abc86e1 Reviewed-on: https://review.haiku-os.org/c/haiku/+/2448 Reviewed-by: Adrien Destugues <[email protected]> Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
296183eb6f
commit
6ae1da352b
@@ -52,6 +52,7 @@ MasterServerDevice::MasterServerDevice()
|
|||||||
get_mouse_acceleration(&fAcceleration);
|
get_mouse_acceleration(&fAcceleration);
|
||||||
get_click_speed(&fDblClickSpeed);
|
get_click_speed(&fDblClickSpeed);
|
||||||
_CalculateAccelerationTable();
|
_CalculateAccelerationTable();
|
||||||
|
_SearchDevices();
|
||||||
}
|
}
|
||||||
|
|
||||||
// destructor
|
// destructor
|
||||||
@@ -70,12 +71,7 @@ MasterServerDevice::~MasterServerDevice()
|
|||||||
status_t
|
status_t
|
||||||
MasterServerDevice::InitCheck()
|
MasterServerDevice::InitCheck()
|
||||||
{
|
{
|
||||||
input_device_ref device = { (char *)"Wacom Tablets",
|
return BInputServerDevice::InitCheck();
|
||||||
B_POINTING_DEVICE, (void*)this };
|
|
||||||
input_device_ref* deviceList[2] = { &device, NULL };
|
|
||||||
RegisterDevices(deviceList);
|
|
||||||
|
|
||||||
return B_OK;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// SystemShuttingDown
|
// SystemShuttingDown
|
||||||
@@ -218,6 +214,10 @@ MasterServerDevice::_AddDevice(const char* path)
|
|||||||
// start device polling only if we're started
|
// start device polling only if we're started
|
||||||
if (fActive)
|
if (fActive)
|
||||||
device->Start();
|
device->Start();
|
||||||
|
input_device_ref device = { (char *)"Wacom Tablets",
|
||||||
|
B_POINTING_DEVICE, (void*)this };
|
||||||
|
input_device_ref* deviceList[2] = { &device, NULL };
|
||||||
|
RegisterDevices(deviceList);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
PRINT(("pointing device not added (%s)\n", path));
|
PRINT(("pointing device not added (%s)\n", path));
|
||||||
|
|||||||
@@ -48,19 +48,17 @@ class TouchpadView;
|
|||||||
class InputWindow : public BWindow
|
class InputWindow : public BWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
InputWindow(BRect rect);
|
InputWindow(BRect rect);
|
||||||
void MessageReceived(BMessage* message);
|
void MessageReceived(BMessage* message);
|
||||||
void Show();
|
void Show();
|
||||||
void Hide();
|
void Hide();
|
||||||
|
|
||||||
status_t FindDevice();
|
status_t FindDevice();
|
||||||
void AddDevice(BInputDevice* device);
|
void AddDevice(BInputDevice* device);
|
||||||
private:
|
private:
|
||||||
|
|
||||||
DeviceListView* fDeviceListView;
|
DeviceListView* fDeviceListView;
|
||||||
BCardView* fCardView;
|
BCardView* fCardView;
|
||||||
MouseSettings fSettings;
|
|
||||||
SettingsView* fSettingsView;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* INPUT_WINDOW_H */
|
#endif /* INPUT_WINDOW_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user