Reinstated the L+SELECT payload
This commit is contained in:
parent
3c64a3a234
commit
a76c943c01
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
#define HID_PAD (*(vu32 *)0x10146000 ^ 0xFFF)
|
#define HID_PAD (*(vu32 *)0x10146000 ^ 0xFFF)
|
||||||
#define BUTTON_RIGHT (1 << 4)
|
#define BUTTON_RIGHT (1 << 4)
|
||||||
#define BUTTON_LEFT (1 << 5)
|
#define BUTTON_LEFT (1 << 5)
|
||||||
#define BUTTON_UP (1 << 6)
|
#define BUTTON_UP (1 << 6)
|
||||||
#define BUTTON_DOWN (1 << 7)
|
#define BUTTON_DOWN (1 << 7)
|
||||||
#define BUTTON_X (1 << 10)
|
#define BUTTON_X (1 << 10)
|
||||||
#define BUTTON_Y (1 << 11)
|
#define BUTTON_Y (1 << 11)
|
||||||
#define BUTTON_R1 (1 << 8)
|
#define BUTTON_R1 (1 << 8)
|
||||||
|
#define BUTTON_SELECT (1 << 2)
|
@ -51,6 +51,7 @@ void main(void)
|
|||||||
((pressed & BUTTON_X) && LOAD_PAYLOAD("x")) ||
|
((pressed & BUTTON_X) && LOAD_PAYLOAD("x")) ||
|
||||||
((pressed & BUTTON_Y) && LOAD_PAYLOAD("y")) ||
|
((pressed & BUTTON_Y) && LOAD_PAYLOAD("y")) ||
|
||||||
((pressed & BUTTON_R1) && LOAD_PAYLOAD("r")) ||
|
((pressed & BUTTON_R1) && LOAD_PAYLOAD("r")) ||
|
||||||
|
((pressed & BUTTON_SELECT) && LOAD_PAYLOAD("select")) ||
|
||||||
LOAD_PAYLOAD("def"))
|
LOAD_PAYLOAD("def"))
|
||||||
((void (*)())PAYLOAD_ADDRESS)();
|
((void (*)())PAYLOAD_ADDRESS)();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user