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 / Mouse Input

Author
Message
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 6th Mar 2009 17:51
Do these commands work?

DarkGDK.IO.Mouse.Click()
DarkGDK.IO.Mouse.MoveX()
DarkGDK.IO.Mouse.MoveY()

Thanks,
Alex

Diggsey
17
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 6th Mar 2009 21:34
Yes, if used in the correct way

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
jdeimund
20
Years of Service
User Offline
Joined: 2nd Jun 2003
Location:
Posted: 7th Mar 2009 04:03
Hi AlexI,
I couldn't get them to work either (I'm a newbie to gdk.net). I did get this to work inside the gameloop:



Were you able to get the DarkGDK.IO.Mouse.Leftclick to work?
AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 7th Mar 2009 13:35 Edited at: 7th Mar 2009 13:36
Very helpful Diggsey NOT.

Anyway these functions do not appear to work in windows forms which isn't very useful. In full screen mode they work. Its because the windows form is stealing the input. Which also means Keyboard input doesn't work, read more here: http://forum.thegamecreators.com/?m=forum_view&t=144831&b=37

I was hopping the mouse would be excluded but I was wrong


AlexI
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location: UK
Posted: 7th Mar 2009 14:18 Edited at: 7th Mar 2009 14:34
I have written my own input class now that works with windows forms

MoomanFL
18
Years of Service
User Offline
Joined: 12th Nov 2005
Location:
Posted: 8th Mar 2009 10:22
What is odd is that the default template example code uses the mouse to rotate the cube, and that works just fine with windows forms. So it seems it is just a subset of commands that seems to have a problem with forms.

Design documents?!? What design documents??? I thought we were just going to wing it!!!
Grayvyn
15
Years of Service
User Offline
Joined: 30th Oct 2008
Location: Southern California
Posted: 9th May 2009 07:23
On my XP machine the mouse works fine but on my Vista the mouse doesn't work at all in the Viewport in non-full screen mode.
Any ideas?

MoomanFL
18
Years of Service
User Offline
Joined: 12th Nov 2005
Location:
Posted: 11th May 2009 07:18
Don't know. I am using Vista and I don't have that problem so I doubt that Vista is the only issue causing it for you.

Design documents?!? What design documents??? I thought we were just going to wing it!!!

Login to post a reply

Server time is: 2024-03-28 16:59:19
Your offset time is: 2024-03-28 16:59:19