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 / dbInKey() problem

Author
Message
Zumwalt
17
Years of Service
User Offline
Joined: 1st Feb 2007
Location: Tampa, FL
Posted: 24th Feb 2008 21:51



In this instance, the (a) which is the result of the key, shows up on the screen as a or q, however, my if statements never trigger a true, they are always false. I want to have the camera look up and look down, I have the turn left, turn right, forward and back taken care of, but the pitch isn't working. What other command should I use in this case to pitch the camera up and down.
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 24th Feb 2008 22:13
You are comparing two pointers, and although the data they point to is the same, the address of that data is not. Use strcmp() to compare strings, NOT ==

Zumwalt
17
Years of Service
User Offline
Joined: 1st Feb 2007
Location: Tampa, FL
Posted: 24th Feb 2008 22:32


Thanks, I knew I was overlooking something simple.
I just have to make sure that my #include has the darkgdk last in the list of includes to avoid symbol issues.

Login to post a reply

Server time is: 2024-11-20 03:43:25
Your offset time is: 2024-11-20 03:43:25