Skip to main content
gamedev.net
🔒 Locked

Direct input

Started by EvilDazze 2 replies 900+ views
Original Post
EvilDazze
EvilDazze
I´m trying to use direct input but when I try to compile it i get the following error: Core error LNK2001: unresolved external symbol _IID_IDirectInput8A I include dinput.h and links to dinput8.lib. Here is the the only code i use with dinput, I´ve copied from the SDK tutrial DirectInput8Create(hInstance, DIRECTINPUT_VERSION, IID_IDirectInput8, (void**)&DInputDevice, NULL); I use VC.net and dx9
"Better to be king for a night than a schmuck for a lifetime"
aker_jus
aker_jus
Since u are using DX9, use DirectInput9Create. Read documentation.
GraphicsWare|RenderTechhttp://www.graphicsware.com3D Graphics & Solutions
ProgX
ProgX
try the dxguid.lib

---
The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea
---The three most dangerous things in the world are a programmer with a soldering iron, a hardware type with a program patch and a user with an idea
EvilDazze
EvilDazze
quote:
Original post by aker_jus
Since u are using DX9, use DirectInput9Create. Read documentation.


I have copied the code from the documentation, it says DirectInput8Create

I added dxguid.lib and now it works
thanx
"Better to be king for a night than a schmuck for a lifetime"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.