Using Irrlicht 1.4
DirectX SDK Jan 2008
This is in the head:
Code: Select all
#include <irrlicht.h>
#include <wchar.h>
#include <dinput.h>
#include <stdlib.h>
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;
#pragma comment(lib, "Irrlicht.lib")
#pragma comment(lib, "dinput.lib")
#pragma comment(lib, "dxguid.lib")
#define SafeRelease(x) if (x) { x->Release(); x=NULL;}Code: Select all
// Create the DI object
if (DirectInputCreate(hInstance, DIRECTINPUT_VERSION, &lpDI, NULL) != DI_OK)
{
ErrStr = Err_DirectInputCreate;
CleanupDirectInput();
return FALSE;
}
//Enumerate joysticks//
LPVOID pdi = lpDI;
lpDI->EnumDevices(DIDEVTYPE_JOYSTICK,EnumJoy,pdi,DIEDFL_ATTACHEDONLY);
if (g_lpDIDeviceJoystick)
{
GetJoystickInput( &g_X, &g_Y, &g_bButton );
}Code: Select all
error C3861: 'DirectInputCreate': identifier not found 408
error C2065: 'DIDEVTYPE_JOYSTICK' : undeclared identifier 416
And the only think i think that would do this is one/all of these header lines.
#include <dinput.h>
#pragma comment(lib, "dinput.lib")
#pragma comment(lib, "dxguid.lib")
but i have all of that installed and all directory's are pointed to the respected parts
any ideas?