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 / Keyboard and mouse usage

Author
Message
Chess
17
Years of Service
User Offline
Joined: 25th Mar 2007
Location: Québec, Canada
Posted: 17th Sep 2009 15:54
Hi, I finally got DGDK's working and I'm currently trying different things, which seem to work correctly for now.

I am now trying to test keyboard entries and mouse clicks. The problem I have here is that some keys do not seem to be recognized, and I wonder if (probably) the problem comes from my code.

Per example, this doesn't seem to work:



neither of this



or this



but any regular entry from the keyboard ("a", "b", "c"...) do work perfectly. So I am wondering where's my problem ?


Thanks a lot!
Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 19th Sep 2009 14:02
If you are using a windows form, you have to use the windows form events to get input.

Chess
17
Years of Service
User Offline
Joined: 25th Mar 2007
Location: Québec, Canada
Posted: 19th Sep 2009 18:14
How is it possible to NOT use a windows form ?
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 6th Oct 2009 08:12
you have to get mouse and keyboard inputs from the mouse down and key down declarations of the form like so.

Chess
17
Years of Service
User Offline
Joined: 25th Mar 2007
Location: Québec, Canada
Posted: 7th Oct 2009 07:28
Yeah, I get it working. Sorry, I forgot to post back. Thanks to you and Diggsey for your help.

Login to post a reply

Server time is: 2024-03-28 10:38:17
Your offset time is: 2024-03-28 10:38:17