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 / Looking around with mouse

Author
Message
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 18th Jul 2009 02:42
I am tring to use the mouse to look around but it doesnt seem to work i have this:

Camera.DefaultCamera.RotateCurrent(DarkGDK.IO.Mouse.X, DarkGDK.IO.Mouse.Z, DarkGDK.IO.Mouse.Z)

I wont work, is there a way.
veltro
User Banned
Posted: 30th Jul 2009 03:59
Quote: "Camera.DefaultCamera.RotateCurrent(DarkGDK.IO.Mouse.X, DarkGDK.IO.Mouse.Z, DarkGDK.IO.Mouse.Z)"


maybe
Camera.DefaultCamera.RotateCurrent(DarkGDK.IO.Mouse.X, DarkGDK.IO.Mouse.Y, DarkGDK.IO.Mouse.Z)
AndrewT
17
Years of Service
User Offline
Joined: 11th Feb 2007
Location: MI, USA
Posted: 31st Jul 2009 01:03
You do know that the Z component of the mouse position is the position of the scroll wheel, right?

I don't have DGDK.NET, but here's how I do it in DBP:



Probably shouldn't be hard to convert.

i like orange
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 7th Oct 2009 08:17
I still havnt had any luck. has anyone done it before
Chess
17
Years of Service
User Offline
Joined: 25th Mar 2007
Location: Québec, Canada
Posted: 9th Oct 2009 15:31 Edited at: 9th Oct 2009 15:51
Probably not the best way to do it, but it works:

Declare these variables:


in your mouseDown event:


in your mouseUp event:


then in the loop:



Another way to do it:
VB and GDK
14
Years of Service
User Offline
Joined: 2nd Jun 2009
Location:
Posted: 18th Oct 2009 03:19
I havnt tried yet but thanks any way

Login to post a reply

Server time is: 2024-05-03 17:29:18
Your offset time is: 2024-05-03 17:29:18