CircleOS  1
Functions
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 300 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 338 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 242 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 261 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 280 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 319 of file touchscreen.c.

void TOUCHSCR_SetSensibility ( u16  sens)

Set the sensibility of the touch detection.

Parameters
[in]sens0 to 4095 (3000 by default).

Definition at line 357 of file touchscreen.c.