VITAlbum/include/utils.h

22 lines
553 B
C
Raw Permalink Normal View History

#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);
SceCtrlData ReadControls(void);
2020-07-07 02:26:33 +00:00
int GetEnterButton(void);
int GetCancelButton(void);
void GetSizeString(char *string, double size);
}