added log
added a sign change git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9146 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -41,7 +41,6 @@
|
||||
#include <Path.h>
|
||||
#include <String.h>
|
||||
|
||||
#define DEBUG 1
|
||||
#if DEBUG
|
||||
#define LOG(text) fputs(text, sLogFile); fflush(sLogFile)
|
||||
#else
|
||||
@@ -385,7 +384,13 @@ MouseInputDevice::DeviceWatcher(void *arg)
|
||||
|
||||
// TODO: add acceleration computing
|
||||
int32 xdelta = movements.xdelta * dev->settings.accel.speed >> 15;
|
||||
int32 ydelta = movements.ydelta * dev->settings.accel.speed >> 15;
|
||||
int32 ydelta = -movements.ydelta * (dev->settings.accel.speed >> 15);
|
||||
|
||||
snprintf(log, 128, "%s: x: %ld, y: %ld, \n",
|
||||
dev->device_ref.name, xdelta, ydelta);
|
||||
|
||||
LOG(log);
|
||||
|
||||
|
||||
// TODO: B_MOUSE_DOWN and B_MOUSE_UP messages don't seem
|
||||
// to be generated correctly.
|
||||
|
||||
Reference in New Issue
Block a user