00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef __PSPDEBUGKB_H
00014 #define __PSPDEBUGKB_H
00015
00016 #ifdef __cplusplus
00017 extern "C" {
00018 #endif
00019
00020 enum PspDebugKbSettings {
00022 PSP_DEBUG_KB_MAXLEN = 40,
00024 PSP_DEBUG_KB_BOX_X = 6,
00025 PSP_DEBUG_KB_BOX_Y = 8,
00027 PSP_DEBUG_KB_CHAR_COLOUR = 0xffffffff,
00028 PSP_DEBUG_KB_BACK_COLOUR = 0xff000000,
00030 PSP_DEBUG_KB_CHAR_HIGHLIGHT = 0xff00ff00,
00031 PSP_DEBUG_KB_BACK_HIGHLIGHT = 0xff101010,
00033 PSP_DEBUG_KB_OFFSET_X = 6,
00034 PSP_DEBUG_KB_OFFSET_Y = 4,
00036 PSP_DEBUG_KB_SPACING_X = 3,
00037 PSP_DEBUG_KB_SPACING_Y = 2,
00039 PSP_DEBUG_KB_NUM_CHARS = 13,
00040 PSP_DEBUG_KB_NUM_ROWS = 4,
00042 PSP_DEBUG_KB_BOX_WIDTH = (PSP_DEBUG_KB_NUM_CHARS * PSP_DEBUG_KB_SPACING_X) + (2 * PSP_DEBUG_KB_OFFSET_X),
00043 PSP_DEBUG_KB_BOX_HEIGHT = ((PSP_DEBUG_KB_NUM_ROWS + 1) * PSP_DEBUG_KB_SPACING_Y) + PSP_DEBUG_KB_OFFSET_Y,
00045 PSP_DEBUG_KB_COMMAND_ROW = 4,
00047 PSP_DEBUG_KB_NUM_COMMANDS = 5
00048 };
00049
00055 void pspDebugKbShift(int *shiftState);
00056
00064 void pspDebugKbDrawKey(int row, int col, int highlight);
00065
00071 void pspDebugKbDrawString(char *str);
00072
00077 void pspDebugKbClearBox();
00078
00083 void pspDebugKbDrawBox();
00084
00090 void pspDebugKbInit(char *str);
00091
00092 #ifdef __cplusplus
00093 }
00094 #endif
00095
00096 #endif