@GamErix Cheers, я сделал это.

могу имитировать нажатие клавиш с DirectInput? В настоящее время у меня есть инициализация (но я не уверен, хорошо это или нет):

#include <dinput.h>

#pragma comment (lib, "dinput8.lib")
#pragma comment (lib, "dxguid.lib")

LPDIRECTINPUT8 din;    // the pointer to our DirectInput interface
LPDIRECTINPUTDEVICE8 dinkeyboard;    // the pointer to the keyboard device
BYTE keystate[256];    // the storage for the key-information

void initDInput(HINSTANCE hInstance, HWND hWnd);    // sets up and initializes DirectInput
void detect_input(void);    // gets the current input state
void cleanDInput(void);    // closes DirectInput and releases memory 

Так может кто-нибудь показать мне, как имитировать, например, нажатие левой клавиши со стрелкой в ​​игре?

Ответы на вопрос(1)

Ваш ответ на вопрос