2016-06-07 13:53:24 +02:00
|
|
|
/*
|
|
|
|
* utils.h
|
|
|
|
*/
|
|
|
|
|
2016-03-20 16:55:49 +01:00
|
|
|
#pragma once
|
|
|
|
|
2016-03-19 17:30:56 +01:00
|
|
|
#include "types.h"
|
|
|
|
|
2016-03-24 16:27:03 +01:00
|
|
|
#define HID_PAD (*(vu16 *)0x10146000 ^ 0xFFF)
|
2016-03-20 16:55:49 +01:00
|
|
|
#define BUTTON_SELECT (1 << 2)
|
2016-06-07 13:53:24 +02:00
|
|
|
#define BUTTON_START (1 << 3)
|
2016-03-24 00:14:29 +01:00
|
|
|
|
|
|
|
#define COLOR_TITLE 0xFF9900
|
2016-03-25 04:50:19 +01:00
|
|
|
#define COLOR_WHITE 0xFFFFFF
|
2016-03-25 16:51:09 +01:00
|
|
|
#define COLOR_RED 0x0000FF
|
2016-03-27 19:33:21 +02:00
|
|
|
#define COLOR_GREEN 0x00FF00
|
2016-03-19 17:30:56 +01:00
|
|
|
|
2016-03-27 19:33:21 +02:00
|
|
|
int pos_y;
|
2016-03-19 17:30:56 +01:00
|
|
|
|
2016-06-07 13:53:24 +02:00
|
|
|
u32 waitInput(void);
|
2016-03-25 18:17:59 +01:00
|
|
|
void shutdown(u32 mode, const char *message);
|