#include "PA9.h"
Data Structures | |
struct | Keyboards |
Defines | |
#define | PA_InitCustomKeyboard(bg_number, keyb_custom) |
Initialise a custom Keyboard on a given background. | |
#define | PA_EraseLastKey() PA_SetLetterPal(PA_Keyboard_Struct.oldX, PA_Keyboard_Struct.oldY, 15) |
Erase the last key lit up (if it didn't on it's own). | |
Functions | |
void | PA_SetLetterPal (s16 x, s16 y, u8 Pal) |
void | PA_InitKeyboard (u8 bg_number) |
Initialise the Keyboard on a given background. Uses 16 color palettes 14 and 15 (doesn't mix with text though, don't worry). | |
char | PA_CheckKeyboard (void) |
Checks if the keyboard is used, and return the letter :) Use this every turn (even if the stylus isn't pressed). | |
void | PA_ScrollKeyboardX (s16 x) |
Set the Keyboard's X position. | |
void | PA_ScrollKeyboardY (s16 y) |
Set the Keyboard's Y position. | |
void | PA_ScrollKeyboardXY (s16 x, s16 y) |
Set the Keyboard's position. | |
void | PA_KeyboardIn (s16 x, s16 y) |
Make the keyboard enter to position (x, y), scrolling from the bottom of the screen. | |
void | PA_KeyboardOut (void) |
Make the keyboard scroll out. | |
void | PA_ReloadKeyboardCol (void) |
Reloads the keyboard's palette, usefull if you changed the background palette. | |
void | PA_SetKeyboardColor (u8 color1, u8 color2) |
You can change the color used by the keyboard... | |
void | PA_SetKeyboardScreen (u8 screen) |
Set Keyboard screen. Must be used BEFORE the keyboard init.. | |
Variables | |
u8 | keyb_screen |
const unsigned char | keyboard_Tiles [10400] |
const unsigned short | keyboard_Map [4096] |
Keyboards | PA_Keyboard_Struct |
const u8 | PA_Keyboard [2][5][24] |
This will allow you to show a keyboard, use it, etc...
void PA_SetLetterPal | ( | s16 | x, | |
s16 | y, | |||
u8 | Pal | |||
) |
u8 keyb_screen |
const unsigned short keyboard_Map[4096] |
const unsigned char keyboard_Tiles[10400] |
const u8 PA_Keyboard[2][5][24] |