Home » Community » Forums » » GBA Development From the Ground Up, Volume 3
  Intel sponsors gamedev.net search:   
[Control Panel] [Register] [Bookmarks] [Who's Online] [Active Topics] [Stats] [FAQ] [Search]

Add Forum to Favorites |  Send Topic To a Friend | View Forum FAQ | Track this topic


 Last Thread Next Thread 
 GBA Development From the Ground Up, Volume 3
Post Reply 
Thanks for the GREAT tutorials! Cant wait to read the next articles.

 User Rating: 1015    Report this Post to a Moderator | Link

I managed to download some sample programs, compile them and run them with Visual Boy Advance.

I've been playing around with the code, but can't figure out how to check for 2 or more buttons being pressed simultaneously.

I like the keypad.h but is there not a way to check for this? you know A + B, up + A, etc.

 User Rating: 1015    Report this Post to a Moderator | Link

Nevermind about that keypad.h, you just add the numbers up

i.e. #define KEY_AB KEY_A + KEY_B

or #define KEY_AB 3



 User Rating: 1015    Report this Post to a Moderator | Link

Doesn't anyone register any more? ;-)

You can add, but it makes more sense to "or" them together. Also, ALWAYS put brackets round your defines.

Don't:
#define KEY_AB KEY_A | KEY_B

Do:
#define KEY_AB (KEY_A | KEY_B)

[edited by - siaspete on March 15, 2002 8:22:49 PM]

 User Rating: 1071   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

when will arrive next articles?

 User Rating: 966   |  Rate This User  Send Private MessageView Profile Report this Post to a Moderator | Link

All times are ET (US)

Post Reply
 Last Thread Next Thread 
Forum Rules:
You may not post new threads
You may post replies
You may not edit your posts
You may not use HTML in your posts
Jump To:
Administrative Options: