If I use an if then to read a keystate in a loop, it doesn't work at all. I'm using VB.Net. Sync is on and i've also tried using the Keystate command. I tested it with this code:
Dim a As String = 0
oDBCore.SyncOn()
While DarkGDK.Engine.LoopGDK()
While DarkGDK.Engine.LoopGDK()
oDBCore.CLS()
oDBText.Text(10, 10, Str(a))
a = a + 1
'If oDBInput.LeftKey = 1 Then a = 0
If oDBInput.KeyState(20) = 1 Then a = 0
oDBCore.Sync()
End While
End While
Is this a bug or do such calls need to be coded differently in .NET? I'm using the latest version of the library. I've searched these forums with others having this problem, but no solutions. I see some saying use the events on the form, but i'm not using a form. I ran this test in the default DarkGDK class. If this GDK can't take keyboard input in vb.net as it was advertised, then its pretty much useless and a waste of money.