complete register and unregister
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8807 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1436,49 +1436,6 @@ InputServer::MethodizeEvents(BList *,
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Method: InputServer::StartStopDevices()
|
||||
* Descr:
|
||||
*/
|
||||
status_t
|
||||
InputServer::StartStopDevices(const char* deviceName,
|
||||
input_device_type deviceType,
|
||||
bool doStart)
|
||||
{
|
||||
CALLED();
|
||||
for (int i = gInputDeviceList.CountItems() - 1; i >= 0; i--)
|
||||
{
|
||||
PRINT(("Device #%d\n", i));
|
||||
InputDeviceListItem* item = (InputDeviceListItem*)gInputDeviceList.ItemAt(i);
|
||||
if (NULL == item)
|
||||
continue;
|
||||
|
||||
BInputServerDevice* isd = item->mIsd;
|
||||
input_device_ref dev = item->mDev;
|
||||
|
||||
PRINT(("Hey\n"));
|
||||
|
||||
if (NULL != isd)
|
||||
continue;
|
||||
|
||||
if (deviceType == dev.type) {
|
||||
if (doStart) {
|
||||
PRINT((" Starting: %s\n", dev.name));
|
||||
isd->Start(dev.name, dev.cookie);
|
||||
item->mStarted = true;
|
||||
} else {
|
||||
PRINT((" Stopping: %s\n", dev.name));
|
||||
isd->Stop(dev.name, dev.cookie);
|
||||
item->mStarted = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
EXIT();
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Method: InputServer::StartStopDevices()
|
||||
* Descr:
|
||||
|
||||
Reference in New Issue
Block a user