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 LCD. 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 X-coordinate (5 <= x <= 314).
y Y coordinate (5 <= y <= 234).
touch Touch determination (0: pen-up; 1: touch)

Revision History

2010/01/07
Initial version.

CONFIDENTIAL