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/sendInput.hpp

37 lines
978 B

#ifndef SENDINPUT_HPP
#define SENDINPUT_HPP
#include <windows.h>
#include "keyboardState.hpp"
#include "utils.hpp"
// ---------------------------------------------------------------------
// Wrapper around SendInput().
class CSendInput
{
// constructors/destructor:
public:
CSendInput() ;
~CSendInput() ;
DISABLE_COPY_ASSIGNMENT( CSendInput ) ;
// input methods:
public:
void setKeyboardState( const KeyboardState& newKeyboardState , const KeyboardState& currKeyboardState ) ;
public:
void sendKeyboardInput( WORD keyCode , bool keyDown ) ;
void sendMouseMoveInput( int dx , int dy , const KeyboardState& keyboardState ) ;
void sendWheelInput( int scrollSize , const KeyboardState& keyboardState ) ;
void sendHorzWheelInput( int scrollSize , const KeyboardState& keyboardState ) ;
protected:
void doSendInput( INPUT* pInputRec ) ;
} ;
// ---------------------------------------------------------------------
#endif // SENDINPUT_HPP