touchscreen.c File Reference

Common touchscreen routines. More...

Go to the source code of this file.

Functions

u16 TOUCHSCR_GetPos (void)
s32 TOUCHSCR_GetPosX (void)
s32 TOUCHSCR_GetPosY (void)
u16 TOUCHSCR_GetAbsPos (void)
bool TOUCHSCR_IsPressed (void)
TOUCHSCR_Mode_enum TOUCHSCR_GetMode (void)
void TOUCHSCR_SetSensibility (u16 sens)

Detailed Description

Author:
YRT
Date:
10/2008
Version:
4.0 Add Open4 Primer
Date:
10/2009

Definition in file touchscreen.c.


Function Documentation

u16 TOUCHSCR_GetAbsPos ( void   ) 

Return the current absolute position of the point touched. This position is independant with the orientation of the screen.

Returns:
The current screen position with X in the LSB and Y in the MSB.
Warning:
The (0x0) point in on the low left corner.

Definition at line 297 of file touchscreen.c.

TOUCHSCR_Mode_enum TOUCHSCR_GetMode ( void   ) 

Return info if the touchscreen is in calibration or not.

Returns:
TS_NORMAL, TS_DRAWING or TS_CALIBRATION, if pending.

Definition at line 335 of file touchscreen.c.

u16 TOUCHSCR_GetPos ( void   ) 

Return the current position of the point touched.

Returns:
The current screen position with X in the LSB and Y in the MSB.
Warning:
The (0x0) point in on the low left corner.

Definition at line 239 of file touchscreen.c.

s32 TOUCHSCR_GetPosX ( void   ) 

Return the current horizontal position of the point touched.

Returns:
The current horizontal position of the point touched.
Warning:
The (0x0) point in on the low left corner.

Definition at line 258 of file touchscreen.c.

s32 TOUCHSCR_GetPosY ( void   ) 

Return the current vertical position of the point touched.

Returns:
The current vertical position of the point touched.
Warning:
The (0x0) point in on the low left corner.

Definition at line 277 of file touchscreen.c.

bool TOUCHSCR_IsPressed ( void   ) 

Return info if the screen has been touched or not.

Returns:
true is the screen has been touched.

Definition at line 316 of file touchscreen.c.

void TOUCHSCR_SetSensibility ( u16  sens  ) 

Set the sensibility of the touch detection.

Parameters:
[in] sens 0 to 4095 (3000 by default).

Definition at line 354 of file touchscreen.c.