Environment Variables - LostShadowGD/lpp-3ds-docs GitHub Wiki

Environment Variables

Variable Description
TOP_SCREEN Top Screen Image_ID for Screen functions.
BOTTOM_SCREEN Bottom Screen Image_ID for Screen functions.
LEFT_EYE ID to print for left eye in stereoscopic 3D.
RIGHT_EYE ID to print for right eye in stereoscopic 3D.
KEY_A Key A value in u32 format for Controls functions.
KEY_B Key B value in u32 format for Controls functions.
KEY_R Key R value in u32 format for Controls functions.
KEY_L Key L value in u32 format for Controls functions.
KEY_START Key START value in u32 format for Controls functions.
KEY_SELECT Key SELECT value in u32 format for Controls functions.
KEY_X Key X value in u32 format for Controls functions.
KEY_Y Key X value in u32 format for Controls functions.
KEY_ZL Key ZL value in u32 format for Controls functions.
KEY_ZR Key ZR value in u32 format for Controls functions.
KEY_DRIGHT Key Digital Right value in u32 format for Controls functions.
KEY_DLEFT Key Digital Left value in u32 format for Controls functions.
KEY_DUP Key Digital Up value in u32 format for Controls functions.
KEY_DDOWN Key Digital Down value in u32 format for Controls functions.
KEY_TOUCH Key Touchscreen value in u32 format for Controls functions.
KEY_HOME Key Home value in u32 format for Controls functions.
KEY_POWER Key Power value in u32 format for Controls functions.
FREAD Attribute for I/O functions for opening a file with Read attribute.
FWRITE Attribute for I/O functions for opening a file with Write attribute.
FCREATE Attribute for I/O functions for opening a file with Create/Write attributes.
LOOP Attribute for Audio/Video functions for looping buffer.
NO_LOOP Attribute for Audio/Video functions for no looping buffer.
NAND Attribute for CIA NAND managing.
SDMC Attribute for CIA SDMC managing.
APP_RUNNING Status for homebrew while is not suspended/exiting.
APP_EXITING Status for homebrew while is exiting.
NO_INTERP No interpolation mode for sounds.
LINEAR_INTERP Linear interpolation mode for sounds.
POLYPHASE_INTERP Polyphase interpolation mode for sounds.
INNER_CAM Inner camera ID.
OUTER_CAM Outer camera ID.
VGA_RES VGA (640x480) resolution value.
QVGA_RES QVGA (320x240) resolution value.
QQVGA_RES QVGA (160x120) resolution value.
CIF_RES CIF (352x288) resolution value.
QCIF_RES QCIF (176x144) resolution value.
DS_RES NDS LCD (256x192) resolution value.
HDS_RES Hi-Res NDS LCD (512x384) resolution value.
CTR_RES 3DS LCD (400x240) resolution value.
NEW_3DS_CLOCK 804 MHZ global variable.
OLD_3DS_CLOCK 268 MHZ global variable.
PHOTO_MODE_NORMAL Normal photo mode state.
PHOTO_MODE_PORTRAIT Portrait photo mode state.
PHOTO_MODE_LANDSCAPE Landscape photo mode state.
PHOTO_MODE_NIGHTVIEW Nightview photo mode state.
PHOTO_MODE_LETTER Letter photo mode state.
CENTER View ID value for centered viewport.
BORDER View ID value for bordered viewport.
HEAD_METHOD HEAD method ID for http requests.
POST_METHOD POST method ID for http requests.
GET_METHOD GET method ID for http requests.
NOT_PRESSED Internal state for Keyboard module when no button is pressed.
PRESSED Internal state for Keyboard module when a button is pressed.
CLEANED Internal state for Keyboard module when clean button is pressed.
FINISHED Internal state for Keyboard module when return button is pressed.