* Don't return B_OK from Start() if opening the device failed. Then Stop()
won't be called, the control thread will remove the device anyways. * Turned off the debug output I left on accidentally in KeyboardInputDevice. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28642 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b419343e89
commit
9195fe6efe
@ -27,7 +27,7 @@
|
||||
|
||||
|
||||
#undef TRACE
|
||||
#define TRACE_KEYBOARD_DEVICE
|
||||
//#define TRACE_KEYBOARD_DEVICE
|
||||
#ifdef TRACE_KEYBOARD_DEVICE
|
||||
|
||||
class FunctionTracer {
|
||||
@ -497,7 +497,8 @@ KeyboardDevice::Start()
|
||||
|
||||
fActive = true;
|
||||
resume_thread(fThread);
|
||||
return B_OK;
|
||||
|
||||
return fFD >= 0 ? B_OK : B_ERROR;
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -210,7 +210,7 @@ MouseDevice::Start()
|
||||
return status;
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
return fDevice >= 0 ? B_OK : B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
|
@ -180,7 +180,7 @@ TouchpadDevice::Start()
|
||||
return status;
|
||||
}
|
||||
|
||||
return B_OK;
|
||||
return fDevice >= 0 ? B_OK : B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user