C#, SlimDX and NES USB Controller

You can talk about almost anything that you want to on this board.

Moderator: Moderators

Post Reply
User avatar
oRBIT2002
Posts: 698
Joined: Sun Mar 19, 2006 3:06 am
Location: Gothenburg/Sweden

C#, SlimDX and NES USB Controller

Post by oRBIT2002 »

I'm trying to access my NES Controller (connected to my PC with an USB-adapter). It works fine with FCEUX, but when trying to code something in C#, I can't access the d-pad.
I'm a totally newbie with DirectInput and such so that may explain it.. But I can detect keypresses but not just the d-pad for some reason.
Hints anyone perhaps?
tepples
Posts: 22864
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: C#, SlimDX and NES USB Controller

Post by tepples »

Have you tried reading the "axes" or the "hat switch"?
User avatar
oRBIT2002
Posts: 698
Joined: Sun Mar 19, 2006 3:06 am
Location: Gothenburg/Sweden

Re: C#, SlimDX and NES USB Controller

Post by oRBIT2002 »

I've checked the .compability property (I think that was the name, don't have the source in front of me right now), but it only reports the joypad has 4 buttons, nothing about directional buttons.
The .GetState() function never reports any X/Y activity.
Post Reply