2023-10-18 21:20:51 +00:00
|
|
|
#pragma once
|
2020-07-07 02:26:33 +00:00
|
|
|
|
|
|
|
#include <psp2/ctrl.h>
|
|
|
|
|
|
|
|
/// Checks whether a result code indicates success.
|
|
|
|
#define R_SUCCEEDED(res) ((res)>=0)
|
|
|
|
/// Checks whether a result code indicates failure.
|
|
|
|
#define R_FAILED(res) ((res)<0)
|
|
|
|
/// Returns the level of a result code.
|
|
|
|
|
|
|
|
extern int SCE_CTRL_ENTER, SCE_CTRL_CANCEL;
|
|
|
|
extern unsigned int pressed;
|
|
|
|
|
|
|
|
namespace Utils {
|
|
|
|
int InitAppUtil(void);
|
|
|
|
int EndAppUtil(void);
|
2020-12-31 17:55:47 +00:00
|
|
|
SceCtrlData ReadControls(void);
|
2020-07-07 02:26:33 +00:00
|
|
|
int GetEnterButton(void);
|
|
|
|
int GetCancelButton(void);
|
|
|
|
void GetSizeString(char *string, double size);
|
|
|
|
}
|