Generate mouse/keyboard events from your mouse.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
interception/MouseDll/debug.hpp

40 lines
979 B

#ifndef DEBUG_HPP
#define DEBUG_HPP
#include <iostream>
// ---------------------------------------------------------------------
extern int gEventWaitTimeout ;
extern int gMaxStrokeHistory ;
extern int gDefaultStrokeResetHistoryInterval ;
extern int gDetectMouseMove_WindowSize ;
extern int gDetectMouseMove_HorzBias ;
extern void loadDebugConfig( const wchar_t* pDebugConfigFilename ) ;
// ---------------------------------------------------------------------
#define LOG_MSG( msg ) \
{ \
if ( gpLogStream != NULL ) \
{ \
*gpLogStream << makeLogMsg( MAKE_STRING( msg ) ) ; \
gpLogStream->flush() ; \
} \
}
#define LOG_CMSG( c , msg ) \
{ \
if ( isLoggingEnabled( c ) ) \
LOG_MSG( msg ) ; \
}
extern bool isLoggingEnabled( const std::string& ) ;
extern std::string makeLogMsg( const std::string& ) ;
extern std::ostream* gpLogStream ;
// ---------------------------------------------------------------------
#endif // DEBUG_HPP