Keyboard and Tablet were likewise using the aforementioned ioctls incorrectly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41896 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -282,7 +282,7 @@ KeyboardDevice::_ControlThread()
|
|||||||
memset(states, 0, sizeof(states));
|
memset(states, 0, sizeof(states));
|
||||||
|
|
||||||
while (fActive) {
|
while (fActive) {
|
||||||
if (ioctl(fFD, KB_READ, &keyInfo) != B_OK) {
|
if (ioctl(fFD, KB_READ, &keyInfo, sizeof(keyInfo)) != B_OK) {
|
||||||
_ControlThreadCleanup();
|
_ControlThreadCleanup();
|
||||||
// TOAST!
|
// TOAST!
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
@@ -322,7 +322,8 @@ TabletInputDevice::DeviceWatcher(void *arg)
|
|||||||
BMessage *message;
|
BMessage *message;
|
||||||
while (dev->active) {
|
while (dev->active) {
|
||||||
memset(&movements, 0, sizeof(movements));
|
memset(&movements, 0, sizeof(movements));
|
||||||
if (ioctl(dev->fd, MS_READ, &movements) != B_OK) {
|
if (ioctl(dev->fd, MS_READ, &movements,
|
||||||
|
sizeof(movements)) != B_OK) {
|
||||||
snooze(10000); // this is a realtime thread, and something is wrong...
|
snooze(10000); // this is a realtime thread, and something is wrong...
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user