pspdebugkb.h File Reference

Go to the source code of this file.

Enumerations

enum  PspDebugKbSettings {
  PSP_DEBUG_KB_MAXLEN = 40, PSP_DEBUG_KB_BOX_X = 6, PSP_DEBUG_KB_BOX_Y = 8, PSP_DEBUG_KB_CHAR_COLOUR = 0xffffffff,
  PSP_DEBUG_KB_BACK_COLOUR = 0xff000000, PSP_DEBUG_KB_CHAR_HIGHLIGHT = 0xff00ff00, PSP_DEBUG_KB_BACK_HIGHLIGHT = 0xff101010, PSP_DEBUG_KB_OFFSET_X = 6,
  PSP_DEBUG_KB_OFFSET_Y = 4, PSP_DEBUG_KB_SPACING_X = 3, PSP_DEBUG_KB_SPACING_Y = 2, PSP_DEBUG_KB_NUM_CHARS = 13,
  PSP_DEBUG_KB_NUM_ROWS = 4, PSP_DEBUG_KB_BOX_WIDTH = (PSP_DEBUG_KB_NUM_CHARS * PSP_DEBUG_KB_SPACING_X) + (2 * PSP_DEBUG_KB_OFFSET_X), PSP_DEBUG_KB_BOX_HEIGHT = ((PSP_DEBUG_KB_NUM_ROWS + 1) * PSP_DEBUG_KB_SPACING_Y) + PSP_DEBUG_KB_OFFSET_Y, PSP_DEBUG_KB_COMMAND_ROW = 4,
  PSP_DEBUG_KB_NUM_COMMANDS = 5
}

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 pspDebugKbDrawString (char *str)
 Draw the string at the top of the box.
void pspDebugKbClearBox ()
 Clear the area where the box resides.
void pspDebugKbDrawBox ()
 Draw the entire box on the desbug screen.
void pspDebugKbInit (char *str)
 Make the text box happen.


Enumeration Type Documentation

enum PspDebugKbSettings

Enumerator:
PSP_DEBUG_KB_MAXLEN  Maximum string length.
PSP_DEBUG_KB_BOX_X  Place the box' upper-left corner at this location.
PSP_DEBUG_KB_BOX_Y 
PSP_DEBUG_KB_CHAR_COLOUR  FG and BG colour of unhighlighted characters.
PSP_DEBUG_KB_BACK_COLOUR 
PSP_DEBUG_KB_CHAR_HIGHLIGHT  FG and BG colour of highlighted character.
PSP_DEBUG_KB_BACK_HIGHLIGHT 
PSP_DEBUG_KB_OFFSET_X  Indent the printed characters by (X_OFFSET,Y_OFFSET).
PSP_DEBUG_KB_OFFSET_Y 
PSP_DEBUG_KB_SPACING_X  Distance from one character to the next.
PSP_DEBUG_KB_SPACING_Y 
PSP_DEBUG_KB_NUM_CHARS  Number of columns/rows (respectively) in charTable(s).
PSP_DEBUG_KB_NUM_ROWS 
PSP_DEBUG_KB_BOX_WIDTH  Box width and height.
PSP_DEBUG_KB_BOX_HEIGHT 
PSP_DEBUG_KB_COMMAND_ROW  Array index of commandRow.
PSP_DEBUG_KB_NUM_COMMANDS  Number of commands on bottom row.


Function Documentation

void pspDebugKbClearBox (  ) 

Clear the area where the box resides.

Called from pspDebugKbDrawBox and pspDebugKbInit (on exit).

void pspDebugKbDrawBox (  ) 

Draw the entire box on the desbug screen.

Called from shift() and doInputBox(char*)

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

void pspDebugKbDrawString ( char *  str  ) 

Draw the string at the top of the box.

Parameters:
str - The string to print

void pspDebugKbInit ( char *  str  ) 

Make the text box happen.

Parameters:
str - The string to edit

void pspDebugKbShift ( int *  shiftState  ) 

Switch charTable when SHIFT is pressed.

Parameters:
shiftState - Pointer to an int indicating Caps Lock


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