Input under DirectX9

Started by
4 comments, last by rcpedersen 18 years, 6 months ago
How do we get mouse input under DirectX 9? What interfaces are commonly used?
Advertisement
You just use the old (well it's perfect, so why change it) DirectInput interfaces. Although, somewhere in the October SDK-thread I read that it's better (read: preparing for the future) to use Windows Messages instead.
Using the standard empthy project in the DX SDK it seems like I can not create :

LPDIRECTINPUT8*	g_lpDI = NULL;


Anything special I should include?
Resolved:
Just include <dinput.h> and define a DIRECTINPUT_VERSION 0x0800
AFAIK, input.h dinput.lib
Actually I think its :=

#include <dinput.h>
#pragma comment(lib, "dinput8.lib")

This topic is closed to new replies.

Advertisement