RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

HAL_TouchscreenType

Hardware Abstraction Layer
HAL entry points from RISC OS
» HAL_TouchscreenType

HAL_TouchscreenType

(HAL entry #55)
unsigned int HAL_TouchscreenType(void)
Entry
-
Exit
Bits 0-7 Touchscreen type
0 => none
1 => resistive
Bit 8 Interrupt operation supported
Bit 9 Calibration not required
Bits 10-15 Reserved
Bits 16-21 Bits of precision available
Bits 22-31 Reserved

Use

This is an internal call for OS use only and should not be used by user code.

Returns a flags word indicating the type of touchscreen.

“Calibration not required” indicates that the raw values returned map linearly onto the screen display area to a usable accuracy as follows:

X,Y  (00000000,00000000) = bottom left of display area
X,Y  (FFFFFFFF,FFFFFFFF) = top right of display area
Pres  00000000-1FFFFFFF  = no touch
Pres  20000000-3FFFFFFF  = light touch
Pres  3FFFFFFF-7FFFFFFF  = touch
Pres  80000000-FFFFFFFF  = firm touch

See also

  • HAL Touchscreen API
Information source: Kernel.Docs.HAL.MoreEnts in CVS
Revised on February 9, 2012 13:50:52 by Jeffrey Lee (213) (195.72.173.130)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: HAL entry points from RISC OS, HAL entry points by number, HAL Touchscreen API

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
  • Export
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys