Welcome! Log In Create A New Profile

Advanced

GC Controller Button Addresses?

Posted by WaxyPumpkin72 
GC Controller Button Addresses?
November 21, 2009 08:39AM
Does anybody know them? If so, could you tell me?

Thanks. :)
Re: GC Controller Button Addresses?
November 21, 2009 02:30PM
Just read the headers gamecube (gccore) section of devkitPRO.



Edited 1 time(s). Last edit at 11/21/2009 02:31PM by Arikado.
Re: GC Controller Button Addresses?
November 21, 2009 06:56PM
Quote
Arikado
Just read the headers gamecube (gccore) section of devkitPRO.
How would I go about doing that? I thought you knew I'm a COMPLETE n00b in this area....
Re: GC Controller Button Addresses?
November 21, 2009 07:25PM
Assuming you're using Windows and installed DevKitPro to default location, open C:\DevKitPro\libogc\include\ogc\pad.h

I think you should find what you're looking for.



Edited 1 time(s). Last edit at 11/21/2009 07:25PM by SifJar.
Re: GC Controller Button Addresses?
November 21, 2009 07:45PM
Do you mind if I ask why you're doing this?
Re: GC Controller Button Addresses?
November 21, 2009 08:19PM
Quote
Arikado
Do you mind if I ask why you're doing this?
I don't mind. :P

C27E4C9A 00000003
3DE08000 5460063E
1E600004 926F1534
60000000 00000000
0600153C 00000148
42000000 3DC0809C
81CED110 81CE0020
3E408000 C232153C
82721534 7DCF7378
7DCE9A14 3E608034
A273XXXX 2C13YYYY
40820024 82721530
2C130000 40820010
82721538 3A730004
92721538 3E608034
A273XXXX 2C13YYYY
40820010 3A600001
92721530 4800000C
3E600000 92721530
82721538 82521534
7C139000 3E408000
4082000C 3A730004
92721538 A26FFFF6
82521538 7C129800
3E408000 4080000C
41820008 4800000C
3E600000 92721538
82721538 7DEF9A14
81EF0000 81CE0000
81CE0024 81EF0024
81CEFFF8 81EFFFF8
81CE0008 81EF0008
81CE0008 81EF0008
39CE0010 39EF0010
7C0EF000 40820054
C02F0068 C32F006C
C2EF0070 EF39882A
60000000 60000000
C22F00F4 D23E00F4
C22F00F8 D23E00F8
C22F00FC D23E00FC
D03E0068 D33E006C
D2FE0070 EC5C0232
EC3D01F2 ECA001B2
EC84182A 485A90A4
D03E0068 485A9084
2834XXXX 0000YYYY
045AA700 4BA56E40
0488D250 3F000000 
E0000000 00000000
2834XXXX 0000ZZZZ
045AA700 D03E0068
0488D250 43300000
E0000000 80008000


Its just a MKWii code. The Xs are the controller address, and I don't know what the address is for it.

Thanks for the help.

Edit: Is there a DevkitPro for mac os?



Edited 2 time(s). Last edit at 11/21/2009 09:22PM by Arikado.
Re: GC Controller Button Addresses?
November 21, 2009 09:06PM
yeah. you have to download and install it manually though. if you just download libogc and extract it, you should find it in there without bothering to get the whole devkitPro. Or just look here: (is it okay to post the contents of pad.h? I assume it is...) : [pastebin.com] (thats the contents of pad.h). What does your code do?
Re: GC Controller Button Addresses?
November 21, 2009 10:01PM
Thanks for the help, but I'm just too dumb to understand.

Thanks anyway. :P
Re: GC Controller Button Addresses?
November 21, 2009 10:14PM
What buttons do you need the address of? I'll tell you them (or try to =P)

EDIT: This is the addresses bit I believe:

#define PAD_BUTTON_LEFT 0x0001
#define PAD_BUTTON_RIGHT 0x0002
#define PAD_BUTTON_DOWN 0x0004
#define PAD_BUTTON_UP 0x0008
#define PAD_TRIGGER_Z 0x0010
#define PAD_TRIGGER_R 0x0020
#define PAD_TRIGGER_L 0x0040
#define PAD_BUTTON_A 0x0100
#define PAD_BUTTON_B 0x0200
#define PAD_BUTTON_X 0x0400
#define PAD_BUTTON_Y 0x0800
#define PAD_BUTTON_MENU 0x1000
#define PAD_BUTTON_START 0x1000

So basically
Left = 0x0001
Right = 0x0002
etc.

Can you work it out or do you need more help?

EDIT: BTW, I believe you should just remove the 0x from the start and then replace the XXXX with the other four digits for the relevant button, in case you didnt know (which I guess you probably did =P)



Edited 2 time(s). Last edit at 11/21/2009 10:17PM by SifJar.
Re: GC Controller Button Addresses?
November 22, 2009 12:56AM
Quote
WaxyPumpkin72
Thanks for the help, but I'm just too dumb to understand.

Thanks anyway. :P

Yeah it is a pain to install manually. However you could just use the .pkg (installer package) of an older version...
Re: GC Controller Button Addresses?
November 22, 2009 02:48AM
Quote
SifJar
#define PAD_BUTTON_LEFT 0x0001
#define PAD_BUTTON_RIGHT 0x0002
#define PAD_BUTTON_DOWN 0x0004
#define PAD_BUTTON_UP 0x0008
#define PAD_TRIGGER_Z 0x0010
#define PAD_TRIGGER_R 0x0020
#define PAD_TRIGGER_L 0x0040
#define PAD_BUTTON_A 0x0100
#define PAD_BUTTON_B 0x0200
#define PAD_BUTTON_X 0x0400
#define PAD_BUTTON_Y 0x0800
#define PAD_BUTTON_MENU 0x1000
#define PAD_BUTTON_START 0x1000
Thanks. Thats exactly what I wanted. :D

Quote
SifJar
Can you work it out or do you need more help?
No, I've got it now.
Quote
SifJar
I believe you should just remove the 0x from the start and then replace the XXXX with the other four digits for the relevant button
I at least know that much. :P

Thank you so much! :D :D
Sorry, only registered users may post in this forum.

Click here to login