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 / help using Letters Keys

Author
Message
bla
15
Years of Service
User Offline
Joined: 21st Feb 2009
Location:
Posted: 21st Feb 2009 16:25
hi. i want to ask how i can move the camera only when 'W' key is pressed? instead of ArrowKey UP?.
Bran flakes91093
16
Years of Service
User Offline
Joined: 13th Sep 2008
Location: Crazy Land
Posted: 21st Feb 2009 17:42 Edited at: 21st Feb 2009 17:49
dbKeyState():
http://forum.thegamecreators.com/?m=forum_view&t=143915&b=22



Or are you talking about dbMoveCameraWithArrowKeys()?
If you are, I don't think it's possible to move them with any other key, hence the name.

#ifdef _DEBUG
FixBugs(All);
#endif
CheatCat
17
Years of Service
User Offline
Joined: 7th Mar 2007
Location: Sweden
Posted: 24th Feb 2009 09:03
Yeah, you should use dbMoveCamera() if you want to move the camera with other keys than the arrow keys.
DnB
15
Years of Service
User Offline
Joined: 28th Feb 2009
Location:
Posted: 4th Mar 2009 03:23
Ah, thats why I could not get keystate to work! I had to load a header file! How did I miss that?? Thanks Bran flakes91093! I am new to using GDK and I am trying to absorb information from these threads.

Login to post a reply

Server time is: 2024-09-30 19:19:41
Your offset time is: 2024-09-30 19:19:41