Macros | |
#define | PA_LidClosed() (PA_IPC_compat->buttons>>7) |
Vérifie si la DS est fermée. Renvoie 0 si ouverte, 1 si fermée. | |
#define | PA_CloseLidSound(close_sound) |
Vérifie si la DS est fermée. Si fermée, ca met en pause la DS et joue un son. | |
#define | PA_CloseLidSound2(close_sound, open_sound) |
Vérifie si la DS est fermée. Si fermée, ca met en pause la DS et joue un son. | |
#define | PA_WaitFor(something) {PA_WaitForVBL(); while(!(something)){PA_WaitForVBL(); }} |
Attendre un événement précis... | |
Fonctions | |
void | PA_Init (void) |
Initialise la lib... Doit etre placé au début de main(). | |
void | PA_Init2D (void) |
Remet en mode 2D après avoir utilisé la 3D. | |
void | PA_SetVideoMode (u8 screen, u8 mode) |
Changer de mode video... A utiliser avec précaution. | |
void | PA_UpdateUserInfo (void) |
Met à jour les infos sur l'utilisateur... C'est fait automatiquement dans PA_Init. On peut ensuite récupérer toutes les infos avec PA_UserInfo.Color (couleur favorite), .BdayDay, .BdayMonth, .AlarmHour, .AlarmMinute, .Name, .NameLength, .Message, .MessageLength, .Language. | |
void | PA_UpdateRTC (void) |
Met à jour les infos sur l'heure et la date. C'est automatiquement mis à jour dans le VBL PA... On récupère les infos avec PA_RTC.Minutes, .Hour, .Seconds, .Day, .Month, et .Year. | |
void | PA_SwitchScreens (void) |
Echange les écrans du haut et du bas. | |
void | PA_SetAutoCheckLid (u8 on) |
Vérifie automatiquement si la DS est fermée dans PA_WaitForVBL. | |
u8 | PA_CheckLid (void) |
Vérifie si la DS est fermée. Si fermée, ca met en pause la DS et renvoie 1. | |
void | PA_WaitForVBL (void) |
Attendre le vbl... | |
void | PA_SetScreenLight (u8 screen, u8 light) |
Allumer ou eteindre la lumière d'un écran. | |
void | PA_SetLedBlink (u8 blink, u8 speed) |
Régler le clignotement de la led. | |
void | PA_SetDSLBrightness (u8 level) |
Régler le niveau de lumière de la DS Lite. | |
bool | PA_Locate (char *start, char *target, bool isDir, int depth, char *result) |
Find a directory in the file system within a given depth. | |
Variables | |
u8 | PA_ExtPal [2][2] |
#define PA_CloseLidSound | ( | close_sound | ) |
Valeur :
{\ if(PA_LidClosed()){\ PA_PlaySimpleSound(close_sound);\ PA_CheckLid(); \ }}
close_sound | Son à jouer, regarder la doc son si pas certain de quoi mettre... |
#define PA_CloseLidSound2 | ( | close_sound, | |||
open_sound | ) |
Valeur :
{\ if(PA_LidClosed()){\ PA_PlaySimpleSound(close_sound);\ PA_CheckLid(); \ PA_PlaySimpleSound(open_sound); \ }}
close_sound | Son à jouer quand se ferme, regarder la doc son si pas certain de quoi mettre... | |
open_sound | Son à jouer quand s'ouvre, regarder la doc son si pas certain de quoi mettre... |
#define PA_LidClosed | ( | ) | (PA_IPC_compat->buttons>>7) |
Vérifie si la DS est fermée. Renvoie 0 si ouverte, 1 si fermée.
#define PA_WaitFor | ( | something | ) | {PA_WaitForVBL(); while(!(something)){PA_WaitForVBL(); }} |
Attendre un événement précis...
something | Evénement à attendre, comme Pad.Newpress.A, ou Stylus.Newpress, etc... |
inline u8 PA_CheckLid | ( | void | ) | [inline] |
Vérifie si la DS est fermée. Si fermée, ca met en pause la DS et renvoie 1.
void PA_Init | ( | void | ) |
Initialise la lib... Doit etre placé au début de main().
void PA_Init2D | ( | void | ) |
Remet en mode 2D après avoir utilisé la 3D.
bool PA_Locate | ( | char * | start, | |
char * | target, | |||
bool | isDir, | |||
int | depth, | |||
char * | result | |||
) |
Find a directory in the file system within a given depth.
start | from which directory to start, use "/" to search from the root | |
target | what to look for: the name of a file or directory | |
isDir | look for a directory or a file? | |
depth | how much depth level (in number of directories) to traverse; limiting this speeds up the search on crowded cards. A reasonable value is, for example, 3. | |
result | pointer to a buffer where the result will be stored |
inline void PA_SetAutoCheckLid | ( | u8 | on | ) | [inline] |
Vérifie automatiquement si la DS est fermée dans PA_WaitForVBL.
on | 1 pour activer, 0 pour désactiver |
inline void PA_SetDSLBrightness | ( | u8 | level | ) | [inline] |
Régler le niveau de lumière de la DS Lite.
level | Niveau de la lumière (0-3) |
inline void PA_SetLedBlink | ( | u8 | blink, | |
u8 | speed | |||
) | [inline] |
Régler le clignotement de la led.
blink | 1 pour clignoter, 0 pour toujours allumé | |
speed | Vitesse : 0 pour lent, 1 pour rapide |
void PA_SetScreenLight | ( | u8 | screen, | |
u8 | light | |||
) | [inline] |
Allumer ou eteindre la lumière d'un écran.
screen | Ecran... | |
light | Lumière, 1 pour allumé, 0 pour éteint |
inline void PA_SetVideoMode | ( | u8 | screen, | |
u8 | mode | |||
) |
Changer de mode video... A utiliser avec précaution.
screen | Ecran... | |
mode | Mode 0 pour normal, 1 pour 1 fond rotatif, 2 pour 2 |
inline void PA_SwitchScreens | ( | void | ) | [inline] |
Echange les écrans du haut et du bas.
void PA_UpdateRTC | ( | void | ) |
void PA_UpdateUserInfo | ( | void | ) |
void PA_WaitForVBL | ( | void | ) | [inline] |
Attendre le vbl...
u8 PA_ExtPal[2][2] |