Since there are problems with VMWare, ioctl()ing at fixed intervals seems like
the better idea after all. The snoozing won't add an additional delay, if the polling was already slow. Have not tested in VMWare myself, as I don't have a working installation. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29436 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
6880c19362
commit
5994d47ab4
@ -375,7 +375,7 @@ MouseDevice::_ControlThread()
|
||||
|
||||
static const bigtime_t kTransferDelay = 1000000 / 125;
|
||||
// 125 transfers per second should be more than enough
|
||||
#define USE_REGULAR_INTERVAL 0
|
||||
#define USE_REGULAR_INTERVAL 1
|
||||
#if USE_REGULAR_INTERVAL
|
||||
bigtime_t nextTransferTime = system_time() + kTransferDelay;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user