We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LDController
#1
Hi folks,  can anyone help me with some issues with the LDController actions ?
I have a generic USB SNES controller.
From the Windows Game Controller settings and properties, I can see that all the buttons are registering correctly, and continue to register whilst held down.

I have SlimDX runtime for .NET 4.0 installed .

In SB, using the LDController.Buttons query, the array returned is completely spasmodic.  I have the following code in a While ("True") loop...
  LDButtons = LDController.Buttons(1)
  GraphicsWindow.Title = LDButtons

E.g. I press button 1 and hold it. For a few seconds there is no response, then Button 1 may register as "True" for a brief moment, and then return to "False" almost instantly.
All other buttons exhibit similar behaviour. Sometimes a button may not register "True" at all while being held down, even though the Controller settings show that the button is depressed.


Here's what the array looks like for a brief period while I am holding Button 1 down... Notice that it is registered as "True" for 2 loop passes.
1=False;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=False;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=True;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=False;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=False;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=False;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=False;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=True;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=False;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;
1=False;2=False;3=False;4=False;5=False;6=False;7=False;8=False;9=False;10=False;

Any help to resolve this so I can get a true reading of current buttons depressed will be much appreciated.

regards,  Gordon
Reply


Messages In This Thread
LDController - by GBHalford - 10-01-2024, 05:35 AM
RE: LDController - by AbsoluteBeginner - 10-01-2024, 07:06 AM
RE: LDController - by litdev - 10-01-2024, 07:48 AM
RE: LDController - by GBHalford - 10-01-2024, 09:38 AM
RE: LDController - by litdev - 10-01-2024, 09:47 AM
RE: LDController - by GBHalford - 10-01-2024, 10:14 AM
RE: LDController - by litdev - 10-01-2024, 10:33 AM
RE: LDController - by z-s - 10-01-2024, 01:05 PM
RE: LDController - by GBHalford - 10-02-2024, 03:36 AM
RE: LDController - by z-s - 10-02-2024, 05:18 AM
RE: LDController - by litdev - 10-02-2024, 05:33 AM
RE: LDController - by GBHalford - 10-02-2024, 06:10 AM
RE: LDController - by z-s - 10-02-2024, 08:57 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)