KBD_GetCursorPos

C Specification

#include "kbd.h";
void KBD_GetCursorPos( KBDVec2S16 pos[] );

Arguments

pos Pointer to the cursor coordinates list

Return Values

None.

Description

Obtains the current coordinates of the cursor that is being moved across the keyboard with the +Control Pad.
Cursor movement via the +Control Pad is processed within KBD_Update() (or KBD_UpdateValue()).
The KBDVec2S16 type is the structure as shown below:

typedef struct { s16 x, y; } KBDVec2S16;

Four pos elements are required, and the coordinates are stored as shown below:

pos[0]: the cursor's top left coordinate
pos[1]: the cursor's top right coordinate
pos[2]: the cursor's bottom left coordinate
pos[3]: the cursor's bottom right coordinate

See Also

CONFIDENTIAL