#include <nds.h>
#include <nds/bios.h>
#include <nds/arm7/touch.h>
#include <nds/arm7/clock.h>
#include "PA_IPC.h"
#include "arm7/PA_Sound.h"
#include "Sound7.h"
Macros | |
#define | CODE_IN_IWRAM __attribute__ ((section (".iwram"), long_call)) |
#define | IN_IWRAM __attribute__ ((section (".iwram"))) |
#define | CODE_IN_EWRAM __attribute__ ((section (".ewram"), long_call)) |
#define | IN_EWRAM __attribute__ ((section (".ewram"))) |
#define | PACKED __attribute__ ((packed)) |
#define | TOUCH_CAL_X1 (*(vs16*)0x027FFCD8) |
#define | TOUCH_CAL_Y1 (*(vs16*)0x027FFCDA) |
#define | TOUCH_CAL_X2 (*(vs16*)0x027FFCDE) |
#define | TOUCH_CAL_Y2 (*(vs16*)0x027FFCE0) |
#define | SCREEN_WIDTH 256 |
#define | SCREEN_HEIGHT 192 |
Fonctions | |
u64 | PA_Distance (s32 x1, s32 y1, s32 x2, s32 y2) |
Calculer la distance (au carr?) entre 2 points. | |
void | PA_Init (bool maxmod) |
void | PA_InitVBL (void) |
void | PA_UpdateStylus () |
Mettre à jour la position du stylet. On peut vérifier si le stylet est actuellement sur l'écran (Stylus.Held), tout just appuyé (Stylus.Newpress), ou relaché (Stylus.Released), et obtenir sa position (Stylus.X, Stylus.Y). | |
void | PA_ScreenLight (void) |
void | PA_SetDSLiteBrightness (u8 level) |
Variables | |
s32 | TOUCH_WIDTH |
s32 | TOUCH_HEIGHT |
s32 | TOUCH_OFFSET_X |
s32 | TOUCH_OFFSET_Y |
u16 | PA_NewSPI |
volatile PA_IPCType * | PA_IPC |
u8 | PA_SoundBusyInit |
Contains prototypes and macros for the arm7...
#define CODE_IN_EWRAM __attribute__ ((section (".ewram"), long_call)) |
#define CODE_IN_IWRAM __attribute__ ((section (".iwram"), long_call)) |
#define IN_EWRAM __attribute__ ((section (".ewram"))) |
#define IN_IWRAM __attribute__ ((section (".iwram"))) |
#define PACKED __attribute__ ((packed)) |
#define SCREEN_HEIGHT 192 |
#define SCREEN_WIDTH 256 |
#define TOUCH_CAL_X1 (*(vs16*)0x027FFCD8) |
#define TOUCH_CAL_X2 (*(vs16*)0x027FFCDE) |
#define TOUCH_CAL_Y1 (*(vs16*)0x027FFCDA) |
#define TOUCH_CAL_Y2 (*(vs16*)0x027FFCE0) |
inline u32 PA_Distance | ( | s32 | x1, | |
s32 | y1, | |||
s32 | x2, | |||
s32 | y2 | |||
) | [inline] |
Calculer la distance (au carr?) entre 2 points.
x1 | Coordonn?e X du premier point | |
y1 | Coordonn?e Y du premier point | |
x2 | Coordonn?e X du deuxi?me point | |
y2 | Coordonn?e Y du deuxi?me point |
void PA_Init | ( | bool | maxmod | ) |
void PA_ScreenLight | ( | void | ) |
void PA_SetDSLiteBrightness | ( | u8 | level | ) |
void PA_UpdateStylus | ( | void | ) |
Mettre à jour la position du stylet. On peut vérifier si le stylet est actuellement sur l'écran (Stylus.Held), tout just appuyé (Stylus.Newpress), ou relaché (Stylus.Released), et obtenir sa position (Stylus.X, Stylus.Y).
volatile PA_IPCType* PA_IPC |
u16 PA_NewSPI |
s32 TOUCH_HEIGHT |
s32 TOUCH_OFFSET_X |
s32 TOUCH_OFFSET_Y |
s32 TOUCH_WIDTH |