c ++ win32 Simule Keypress com DirectInput

Como simular um pressionamento de tecla com o DirectInput? Atualmente, tenho a inicialização (mas não tenho certeza se é bom ou não):

#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 

lguém pode me mostrar como simular, por exemplo, pressionar a tecla de seta esquerda em um jog

questionAnswers(1)

yourAnswerToTheQuestion