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 / Mouse and keys

Author
Message
Lil Joe
16
Years of Service
User Offline
Joined: 31st Jul 2008
Location: Cluj
Posted: 31st Jul 2008 11:09
Hey eveyone, I have some questions:
1) How can I read what I type from the keyboard using Dark GDK?

2) How can I use the mouse to navigate in a 3D game made with Dark GDK?

I use Visual C++ 2008 Expres Edition (if it matters) and made a "game" (not finished yet, needs some adjustemnts), atualy is a space simulator and the mouse flight would be great
Dark Gamers
16
Years of Service
User Offline
Joined: 17th Mar 2008
Location:
Posted: 31st Jul 2008 16:40 Edited at: 31st Jul 2008 16:43
I'd like to answer ur 2nd question...
1. you should set some variables


and then make angle changes while moving ur mouse


at last, you can click the mouse to control and move the camera...


that's all... try it~
Roujin
16
Years of Service
User Offline
Joined: 30th Jul 2008
Location:
Posted: 3rd Aug 2008 10:02
here is the source code im using for mouse and arrow key camera navigation. the the main.c file of one of my projects i hope it is usefull to you.
So far ive only been able to go forward and backward using the keyboard and move freely in a 2d circle. If you improve on this please let me know

If it can be missunderstood or messed up i can stuff it up even more!

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-30 03:15:48
Your offset time is: 2024-09-30 03:15:48