head 1.1; branch 1.1.1; access ; symbols start:1.1.1.1 PAlibDoc:1.1.1; locks ; strict; comment @# @; 1.1 date 2005.11.02.08.30.22; author jandujar; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2005.11.02.08.30.22; author jandujar; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @ PA_lib: PA_Keyboard.h File Reference

PA_Keyboard.h File Reference

Keyboard functions. More...

Go to the source code of this file.

Data Structures

struct  Keyboards

Defines

#define PA_BACKSPACE   1
#define PA_CAPS   2
#define PA_ENTER   '\n'
#define PA_SHIFT   4
#define PA_RIEN   0
#define PA_EraseLastKey()   PA_SetLetterPal(Keyboard.oldX, Keyboard.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

Variables

const unsigned char keyboard_Tiles [7264]
const unsigned short keyboard_Map [4096]
const unsigned short keyboardPal1 [16]
const unsigned short keyboardPal2 [16]
Keyboards Keyboard
const u8 PA_Keyboard [2][5][13]


Detailed Description

Keyboard functions.

This will allow you to suma keyboard, use it, etc...


Generated on Fri Oct 28 23:16:51 2005 for PA_lib by  doxygen 1.3.9.1
@ 1.1.1.1 log @Initial import of PalibDoc, begin on PAlib0.64b @ text @@