Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / HOWTO: Keyboard Input with Embedded Rendering Window in Form

Author
Message
Drakkath
12
Years of Service
User Offline
Joined: 19th Aug 2011
Location:
Posted: 24th Aug 2011 22:00
After being told that it "can't be done", and I literally almost did give up before I found a workaround. Note, you will be using .NET Windows form key events, which works great for my Wizardry style, tile based movement project, but definately will suck performance wise if you are doing an FPS or similar.

It's so simple it's stupid: just give the oDBInput object a bogus control device. In my code, I used:

oDBInput.SetControlDevice("")

And viola! Windows Forms is now hooking keys again!

I posted a video on youtube of the game concept I wipped up in 5 hours with DarkGDK.net:

http://www.youtube.com/watch?v=u9j6K6kCuSE

Hope this helps someone!
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 31st Aug 2011 21:10
Removed duplicate thread

Paul.

P.S. Good advice

Login to post a reply

Server time is: 2024-04-20 03:17:42
Your offset time is: 2024-04-20 03:17:42