CARROLL TOUCH
Appendix E - Dynamic Link Library (DLL) Function Reference
Touch System Programmer’s Guide
E-13
Function Call
void FAR CalculateCalibInfo()
{
static unsigned int video_max_xy = 65535;
static float Xmag_float;
static float Ymag_float;
static float Xoff_float;
static float Yoff_float;
Xmag_float = video_max_xy / (touch_lr_x - touch_ul_x);
calibinfo.Xmag = Xmag_float;
Ymag_float = video_max_xy / (touch_lr_y - touch_ul_y);
calibinfo.Ymag = Ymag_float;
Xoff_float = Xmag_float * touch_ul_x);
calibinfo.Xoff = Xoff_float;
Yoff_float = Ymag_float * touch_ul_y);
calibinfo.Yoff = Yoff_float;
} /* CalculateCalibInfo */
CalculateCalibInfo();
SetCalibInfo(&calibinfo);
Summary of Contents for TouchSystems CarrollTouch Prog
Page 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Page 11: ...Table of Contents CARROLL TOUCH viii ...
Page 13: ...Table of Contents CARROLL TOUCH x ...
Page 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Page 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Page 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Page 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...