pspsdk-1.0+beta2
pspdebugkb.c File Reference
#include <pspdebug.h>
#include <pspctrl.h>
#include <stdio.h>
#include <string.h>
#include "pspdebugkb.h"
Include dependency graph for pspdebugkb.c:

Functions

void pspDebugKbShift (int *shiftState)
 Switch charTable when SHIFT is pressed.
void pspDebugKbDrawKey (int row, int col, int highlight)
 Draw the specified key on the keyboard.
void pspDebugKbClearBox ()
 Clear the area where the box resides.
void pspDebugKbDrawBox ()
 Draw the entire box on the desbug screen.
void pspDebugKbDrawString (char *str)
 Draw the string at the top of the box.
void pspDebugKbInit (char *str)
 Make the text box happen.

Variables

char charTable [PSP_DEBUG_KB_NUM_ROWS][PSP_DEBUG_KB_NUM_CHARS]

Function Documentation

void pspDebugKbClearBox ( )
void pspDebugKbDrawKey ( int  row,
int  col,
int  highlight 
)

Draw the specified key on the keyboard.

Parameters
row- The row of the character to print (in charTable)
col- The column of the character to print (in charTable)
highlight- 0 for plain; otherwise highlighted

References charTable, i, PSP_DEBUG_KB_BACK_COLOUR, PSP_DEBUG_KB_BACK_HIGHLIGHT, PSP_DEBUG_KB_BOX_WIDTH, PSP_DEBUG_KB_BOX_X, PSP_DEBUG_KB_BOX_Y, PSP_DEBUG_KB_CHAR_COLOUR, PSP_DEBUG_KB_CHAR_HIGHLIGHT, PSP_DEBUG_KB_COMMAND_ROW, PSP_DEBUG_KB_NUM_COMMANDS, PSP_DEBUG_KB_OFFSET_X, PSP_DEBUG_KB_SPACING_X, PSP_DEBUG_KB_SPACING_Y, pspDebugScreenPrintf(), pspDebugScreenSetBackColor(), pspDebugScreenSetTextColor(), pspDebugScreenSetXY(), and strlen().

Referenced by pspDebugKbDrawBox(), and pspDebugKbInit().

void pspDebugKbDrawString ( char *  str)
void pspDebugKbShift ( int *  shiftState)

Switch charTable when SHIFT is pressed.

Parameters
shiftState- Pointer to an int indicating Caps Lock

References charTable, i, PSP_DEBUG_KB_NUM_CHARS, PSP_DEBUG_KB_NUM_ROWS, and pspDebugKbDrawBox().

Referenced by pspDebugKbInit().

Variable Documentation