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/main.cpp

30 lines
590 B

#include <stdexcept>
#include "main.hpp"
using namespace std ;
// --- LOCAL DATA ------------------------------------------------------
static bool gIsOpen = false ;
// ---------------------------------------------------------------------
void
openApi()
{
// open the API
if ( gIsOpen )
throw runtime_error( "API is already open." ) ;
gIsOpen = true ;
}
// ---------------------------------------------------------------------
void
closeApi()
{
// close the API
if ( ! gIsOpen )
throw runtime_error( "API is not open." ) ;
gIsOpen = false ;
}