nn::hid::CTR::TouchPanelStatus

nn::hid::CTR::TouchPanelStatus Structure

Syntax

struct TouchPanelStatus
{
u16 x;
u16 y;
u8 touch;
};

Description

Structure used to store sampling data from the touch screen.

Gets the coordinates of a pixel, with (0,0) defined as the lower-left corner of the lower screen. The five-pixel border on the outer edge of the Touch Screen cannot accept input. Any raw input to this area is clamped inside this border.

Member Variables

x u16 X coordinate (5 <= x <= 314, where DISPLAY1_HEIGHT of nn::gx::CTR::DisplaySize is a value clamped inside by 5.
y u16 Y coordinate (5 <= y <= 234, where DISPLAY1_WIDTH of nn::gx::CTR::DisplaySize is a value clamped inside by 5).
touch u8 Touch determination (0: pen-up; 1: touch)

Revision History

2010/01/07
Initial version.

CONFIDENTIAL