
CARROLL TOUCH
Appendix D - CTKERN Function Reference
Touch System Programmer’s Guide
D-37
SetUserEventHandlerMode (23)
Description
This function sets the user event handler (UEH) mode, which lets you
install an event handler subroutine that is called whenever the touch
state changes.
It also allows a user application to receive reports from the CTKERN
driver using an interrupt mode rather than a polling mode. The UEH
subroutine should end with a normal return instruction, not a return
from interrupt instruction.
Once a UEH has been installed and enabled, execution of the user
program is halted and the event handler subroutine is called whenever
the touch state changes.
When the UEH is called, the CPU registers contain the following:
BH
=
Z-axis touch pressure.
BL
= Touch state.
0
=
Not touched (x, y set to last place screen was
touched).
1
=
Touched (x, y set to where the screen is touched).
2
=
Non-contiguous (x, y undefined).
CX
= X coordinate.
DX
= Y coordinate.
These parameters are the same as those in the GetTouchState (1)
function.
When the event handler subroutine returns, the execution of the user
program continues at the point at which it was interrupted.
Call with
AL
= 23 (function number).
BL
= User event handler mode.
00 =
User event handler disabled.
01 =
User event handler enabled.
Содержание TouchSystems CarrollTouch Prog
Страница 1: ...CARROLL TOUCH TOUCH PRODUCTS an company AMP Touch System Programmer s Guide ...
Страница 11: ...Table of Contents CARROLL TOUCH viii ...
Страница 13: ...Table of Contents CARROLL TOUCH x ...
Страница 17: ...Welcome CARROLL TOUCH xiv Touch System Programmer s Guide ...
Страница 25: ...Chapter 1 Introduction to Infrared Touch Systems CARROLL TOUCH 1 8 Touch System Programmer s Guide ...
Страница 29: ...Chapter 2 Introduction to Guided Wave Touch Systems CARROLL TOUCH 2 4 Touch System Programmer s Guide ...
Страница 41: ...Chapter 3 General Programming Issues CARROLL TOUCH 3 12 Touch System Programmer s Guide ...
Страница 57: ...Chapter 4 Smart Frame Protocol CARROLL TOUCH 4 16 Touch System Programmer s Guide ...
Страница 87: ...Chapter 6 Touch Application Program Interface TAPI CARROLL TOUCH 6 10 Touch System Programmer s Guide ...
Страница 149: ...Appendix A Smart Frame Protocol Command Reference CARROLL TOUCH A 40 Touch System Programmer s Guide ...
Страница 179: ...Appendix B Smart Frame Protocol II Function Reference CARROLL TOUCH B 30 Touch System Programmer s Guide ...
Страница 237: ...Appendix D CTKERN Function Reference CARROLL TOUCH D 42 Touch System Programmer s Guide ...