#include "flGlobal.h"
#include <stdio.h>
#include <psprtc.h>
#include <pspkernel.h>
#include <psppower.h>
#include <pspimpose_driver.h>
Go to the source code of this file.
Functions | |
void | ntfyInit () |
void | ntfyTick () |
void | ntfyShowAll (float inTime) |
void | ntfyCheckBattery () |
void | ntfyCheckTime () |
void | ntfyShowBattery () |
void | ntfyShowTime () |
void | ntfyShowDate () |
void | ntfyTrayAdd (char *inMessage, u32 inColor) |
void | ntfyTrayTick () |
void | ntfyTrayShow () |
Variables | |
int | ntfyBattChrgLast = -1 |
int | ntfyBattPercentLast = -1 |
int | ntfyBattLowLast = -1 |
float | ntfyBattTime = 0.0f |
Timer * | ntfyBattTimer = NULL |
pspTime | ntfyTimeLast |
float | ntfyTimeTime = 0.0f |
Timer * | ntfyTimeTimer = NULL |
NotifyTrayItem | ntfyTray [FL_NOTIFY_TRAYSIZE] |
Timer * | ntfyTrayTimer = NULL |
u32 | ntfyTickCount = 0 |
bool | ntfyInitialized = false |
bool | ntfyVisible = true |
void ntfyCheckBattery | ( | ) |
Definition at line 170 of file flNotify.c.
References debugStatusLog, FL_NOTIFY_DURATION, ntfyBattChrgLast, ntfyBattLowLast, ntfyBattPercentLast, ntfyBattTime, and ntfyInitialized.
Referenced by ntfyTick().
void ntfyCheckTime | ( | ) |
Definition at line 217 of file flNotify.c.
References FL_NOTIFY_DURATION, ntfyInitialized, ntfyTimeLast, and ntfyTimeTime.
Referenced by ntfyTick().
void ntfyInit | ( | ) |
Definition at line 46 of file flNotify.c.
References FL_NOTIFY_TRAYSIZE, ntfyBattTimer, ntfyInitialized, ntfyTimeLast, ntfyTimeTimer, ntfyTray, ntfyTrayTimer, and timerCreate().
Referenced by flInitialize().
void ntfyShowAll | ( | float | inTime | ) |
Definition at line 131 of file flNotify.c.
References ntfyBattTime, ntfyShowBattery(), ntfyShowDate(), ntfyShowTime(), and ntfyTimeTime.
void ntfyShowBattery | ( | ) |
Definition at line 261 of file flNotify.c.
References debugWarning, fontDefault, fontDraw2dString(), fontHeight(), fontStringWidth(), graphics2dDrawLine(), graphics2dDrawRect(), graphics2dDrawRectFilled(), ntfyVisible, and SCREEN_WIDTH.
Referenced by ntfyShowAll(), and ntfyTick().
void ntfyShowDate | ( | ) |
void ntfyShowTime | ( | ) |
Definition at line 300 of file flNotify.c.
References fontDefault, fontDraw2dString(), fontHeight(), graphics2dDrawEllipse(), graphics2dDrawEllipseFilled(), graphics2dDrawLine(), graphics2dDrawRectFilled(), ntfyVisible, and SCREEN_WIDTH.
Referenced by ntfyShowAll(), and ntfyTick().
void ntfyTick | ( | ) |
Definition at line 67 of file flNotify.c.
References FL_NOTIFY_FREQUENCY, ntfyBattTime, ntfyBattTimer, ntfyCheckBattery(), ntfyCheckTime(), ntfyInitialized, ntfyShowBattery(), ntfyShowTime(), ntfyTickCount, ntfyTimeTime, ntfyTimeTimer, ntfyTrayShow(), ntfyTrayTick(), and timerGetDeltaTime().
Referenced by graphicsSwapBuffers().
void ntfyTrayAdd | ( | char * | inMessage, | |
u32 | inColor | |||
) |
Definition at line 332 of file flNotify.c.
References FL_NOTIFY_DURATION, FL_NOTIFY_TRAYSIZE, ntfyInitialized, ntfyTray, NotifyTrayItem::ntiColor, NotifyTrayItem::ntiMessage, and NotifyTrayItem::ntiTime.
Referenced by debugDevWarningFrom(), debugErrorFrom(), debugStatusLogFrom(), and debugWarningFrom().
void ntfyTrayShow | ( | ) |
Definition at line 363 of file flNotify.c.
References FL_NOTIFY_TRAYSIZE, fontDefault, fontDraw2dString(), fontHeight(), graphics2dDrawRectFilled(), ntfyTray, ntfyVisible, SCREEN_HEIGHT, and SCREEN_WIDTH.
Referenced by ntfyTick().
void ntfyTrayTick | ( | ) |
Definition at line 348 of file flNotify.c.
References FL_NOTIFY_TRAYSIZE, ntfyInitialized, ntfyTray, ntfyTrayTimer, and timerGetDeltaTime().
Referenced by ntfyTick().
int ntfyBattChrgLast = -1 |
int ntfyBattLowLast = -1 |
int ntfyBattPercentLast = -1 |
float ntfyBattTime = 0.0f |
Definition at line 29 of file flNotify.c.
Referenced by ntfyCheckBattery(), ntfyShowAll(), and ntfyTick().
Timer* ntfyBattTimer = NULL |
bool ntfyInitialized = false |
Definition at line 42 of file flNotify.c.
Referenced by ntfyCheckBattery(), ntfyCheckTime(), ntfyInit(), ntfyTick(), ntfyTrayAdd(), and ntfyTrayTick().
u32 ntfyTickCount = 0 |
pspTime ntfyTimeLast |
float ntfyTimeTime = 0.0f |
Definition at line 33 of file flNotify.c.
Referenced by ntfyCheckTime(), ntfyShowAll(), and ntfyTick().
Timer* ntfyTimeTimer = NULL |
NotifyTrayItem ntfyTray[FL_NOTIFY_TRAYSIZE] |
Definition at line 37 of file flNotify.c.
Referenced by ntfyInit(), ntfyTrayAdd(), ntfyTrayShow(), and ntfyTrayTick().
Timer* ntfyTrayTimer = NULL |
bool ntfyVisible = true |
Definition at line 43 of file flNotify.c.
Referenced by ntfyShowBattery(), ntfyShowTime(), and ntfyTrayShow().