pspdebugkb.h

Go to the documentation of this file.
00001 /*
00002  * PSP Software Development Kit - http://www.pspdev.org
00003  * -----------------------------------------------------------------------
00004  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
00005  *
00006  *  pspdebugkb.h - Simple screen debug keyboard
00007  *
00008  * Copyright (c) 2006 Mike Mallett <mike@nerdcore.net>
00009  *
00010  * $Id: pspdebugkb.h 2110 2006-12-19 14:50:27Z tyranid $
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

Generated on Tue Jul 24 15:21:22 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2