Hand Held Products PadCom TT1500 User Manual page 90

Point-of-sale terminal control library
Table of Contents

Advertisement

// TURN PAD ON-INITIALIZE
//=======================
if( !padOn() )
{
cputs( "Can't find writing pad!" );
return;
}
//========================
// SWITCH TO GRAPHICS MODE
//========================
if( !GraphOn() )
{
cputs( "Unable to use graphics" );
padOff();
return;
}
//==========================
// START REAL TIME RECORDING
//==========================
padRecord();
//=============
// COLLECT DATA
//=============
while( !kbhit( ) )
{
// CHECK IF THERE IS MORE DATA FROM THE PAD
if( padUpdate() && padGet( &x, &y, &p ) )
{
// SCALE THE POINTS TO ABOUT DOUBLE In SIZE
padScaleDPI( &x, &y, 160, 160
);
// DRAW THEM ON THE SCREEN
if( p )
_lineto( x, y );
else
5 - 2

Advertisement

Table of Contents
loading

This manual is also suitable for:

Padcom tt3100 series

Table of Contents