PSPSDK 2024-10-31
Loading...
Searching...
No Matches
pspdebugkb.h
Go to the documentation of this file.
1/*
2 * PSP Software Development Kit - https://github.com/pspdev
3 * -----------------------------------------------------------------------
4 * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5 *
6 * pspdebugkb.h - Simple screen debug keyboard
7 *
8 * Copyright (c) 2006 Mike Mallett <mike@nerdcore.net>
9 *
10 */
11
12#ifndef __PSPDEBUGKB_H
13#define __PSPDEBUGKB_H
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
48
54void pspDebugKbShift(int *shiftState);
55
63void pspDebugKbDrawKey(int row, int col, int highlight);
64
70void pspDebugKbDrawString(char *str);
71
77
83
89void pspDebugKbInit(char *str);
90
91#ifdef __cplusplus
92}
93#endif
94
95#endif
void pspDebugKbInit(char *str)
Make the text box happen.
Definition pspdebugkb.c:158
PspDebugKbSettings
Definition pspdebugkb.h:19
@ PSP_DEBUG_KB_CHAR_HIGHLIGHT
FG and BG colour of highlighted character.
Definition pspdebugkb.h:29
@ PSP_DEBUG_KB_SPACING_X
Distance from one character to the next.
Definition pspdebugkb.h:35
@ PSP_DEBUG_KB_BOX_HEIGHT
Definition pspdebugkb.h:42
@ PSP_DEBUG_KB_NUM_ROWS
Definition pspdebugkb.h:39
@ PSP_DEBUG_KB_BOX_Y
Definition pspdebugkb.h:24
@ PSP_DEBUG_KB_BOX_WIDTH
Box width and height.
Definition pspdebugkb.h:41
@ PSP_DEBUG_KB_MAXLEN
Maximum string length.
Definition pspdebugkb.h:21
@ PSP_DEBUG_KB_NUM_CHARS
Number of columns/rows (respectively) in charTable(s)
Definition pspdebugkb.h:38
@ PSP_DEBUG_KB_COMMAND_ROW
Array index of commandRow.
Definition pspdebugkb.h:44
@ PSP_DEBUG_KB_CHAR_COLOUR
FG and BG colour of unhighlighted characters.
Definition pspdebugkb.h:26
@ PSP_DEBUG_KB_BOX_X
Place the box' upper-left corner at this location.
Definition pspdebugkb.h:23
@ PSP_DEBUG_KB_OFFSET_Y
Definition pspdebugkb.h:33
@ PSP_DEBUG_KB_NUM_COMMANDS
Number of commands on bottom row.
Definition pspdebugkb.h:46
@ PSP_DEBUG_KB_OFFSET_X
Indent the printed characters by (X_OFFSET,Y_OFFSET)
Definition pspdebugkb.h:32
@ PSP_DEBUG_KB_BACK_COLOUR
Definition pspdebugkb.h:27
@ PSP_DEBUG_KB_SPACING_Y
Definition pspdebugkb.h:36
@ PSP_DEBUG_KB_BACK_HIGHLIGHT
Definition pspdebugkb.h:30
void pspDebugKbClearBox()
Clear the area where the box resides.
Definition pspdebugkb.c:89
void pspDebugKbDrawBox()
Draw the entire box on the desbug screen.
Definition pspdebugkb.c:103
void pspDebugKbShift(int *shiftState)
Switch charTable when SHIFT is pressed.
Definition pspdebugkb.c:36
void pspDebugKbDrawString(char *str)
Draw the string at the top of the box.
Definition pspdebugkb.c:143
void pspDebugKbDrawKey(int row, int col, int highlight)
Draw the specified key on the keyboard.
Definition pspdebugkb.c:57