change debug
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8812 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -29,9 +29,9 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
//#define DEBUG 1
|
#define DEBUG 1
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
#define LOG(text) fputs(text, sLogFile)
|
#define LOG(text) fputs(text, sLogFile); fflush(sLogFile)
|
||||||
#else
|
#else
|
||||||
#define LOG(text)
|
#define LOG(text)
|
||||||
#endif
|
#endif
|
||||||
@@ -76,8 +76,7 @@ instantiate_input_device()
|
|||||||
|
|
||||||
|
|
||||||
MouseInputDevice::MouseInputDevice()
|
MouseInputDevice::MouseInputDevice()
|
||||||
: fThread(-1),
|
: fThread(-1)
|
||||||
sQuit(false)
|
|
||||||
{
|
{
|
||||||
// TODO: Open "/dev/input/mouse/serial/0" as well, and what about USB mouses ?
|
// TODO: Open "/dev/input/mouse/serial/0" as well, and what about USB mouses ?
|
||||||
fFd = open("dev/input/mouse/ps2/0", O_RDWR);
|
fFd = open("dev/input/mouse/ps2/0", O_RDWR);
|
||||||
@@ -87,7 +86,7 @@ MouseInputDevice::MouseInputDevice()
|
|||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
if (sLogFile == NULL)
|
if (sLogFile == NULL)
|
||||||
sLogFile = fopen("/var/log/mouse_device_log.log", "w");
|
sLogFile = fopen("/var/log/mouse_device_log.log", "a");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user