#59970 - spencer723 - Sun Nov 06, 2005 1:28 am
I've been searching everywhere for it and I'm having absolutely no luck at all. If anyone can link me to one, I would be very grateful. Thanks.
#59973 - Weird Person - Sun Nov 06, 2005 1:37 am
#59978 - spencer723 - Sun Nov 06, 2005 2:01 am
That link doesnt work, I've tried alot haha. But I did manage to write my own "keypad.h" file. I'll give it to you because you will probably need it later on Wierd Person:
Code: |
@define KEY_A 1
@define KEY_B 2
@define KEY_SELECT 4
@define KEY_START 8
@define KEY_RIGHT 16
@define KEY_LEFT 32
@define KEY_UP 64
@define KEY_DOWN 128
@define KEY_R 256
@define KEY_L 512
@define KEYS 0x04000130
|
Just copy and paste that into Notepad and save as "keypad.h"
#59992 - tepples - Sun Nov 06, 2005 4:00 am
If you have recent devkitARM installed through the updater at devkitpro.org, you should have libgba. If you have libgba:
Code: |
#include <gba_input.h> |
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#59994 - spencer723 - Sun Nov 06, 2005 4:05 am
Isn't that written in C tepples? I could convert that to asm.
#59996 - tepples - Sun Nov 06, 2005 4:25 am
Yes, it's in C, as are the rest of the gba_*.h register maps, but converting to asm should be straightforward.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#59997 - spencer723 - Sun Nov 06, 2005 4:28 am
tepples wrote: |
Yes, it's in C, as are the rest of the gba_*.h register maps, but converting to asm should be straightforward. |
Alright, thanks tepples :-D.
#60040 - Weird Person - Sun Nov 06, 2005 4:51 pm
I forgot to check the download link, thanks for the note.