#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"
Defines | |
#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 |
Functions | |
u64 | PA_Distance (s32 x1, s32 y1, s32 x2, s32 y2) |
Calculate the distance (squared) between 2 points. | |
void | PA_Init (bool maxmod) |
void | PA_InitVBL (void) |
void | PA_UpdateStylus () |
Update the Stylus position. You can then check if the stylus is current in use (Stylus.Held), newly pressed (Stylus.Newpress), or released (Stylus.Released), and get it's 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] |
Calculate the distance (squared) between 2 points.
x1 | X coordinate of the fist point | |
y1 | Y coordinate of the first point | |
x2 | X coordinate of the second point | |
y2 | Y coordinate of the second point |
void PA_Init | ( | bool | maxmod | ) |
void PA_ScreenLight | ( | void | ) |
void PA_SetDSLiteBrightness | ( | u8 | level | ) |
void PA_UpdateStylus | ( | void | ) |
Update the Stylus position. You can then check if the stylus is current in use (Stylus.Held), newly pressed (Stylus.Newpress), or released (Stylus.Released), and get it's 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 |