* 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
|
#undef TRACE
|
||||||
#define TRACE_KEYBOARD_DEVICE
|
//#define TRACE_KEYBOARD_DEVICE
|
||||||
#ifdef TRACE_KEYBOARD_DEVICE
|
#ifdef TRACE_KEYBOARD_DEVICE
|
||||||
|
|
||||||
class FunctionTracer {
|
class FunctionTracer {
|
||||||
@ -497,7 +497,8 @@ KeyboardDevice::Start()
|
|||||||
|
|
||||||
fActive = true;
|
fActive = true;
|
||||||
resume_thread(fThread);
|
resume_thread(fThread);
|
||||||
return B_OK;
|
|
||||||
|
return fFD >= 0 ? B_OK : B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -210,7 +210,7 @@ MouseDevice::Start()
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
return B_OK;
|
return fDevice >= 0 ? B_OK : B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ TouchpadDevice::Start()
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
return B_OK;
|
return fDevice >= 0 ? B_OK : B_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user