Touch-It Virtual Keyboard Version 4.9.2
Library callback

Delphi example of how to create a callback procedure within your library. This procedure is invoked using a Callback key.

Two arguments must be supplied:
  • aValue which is the key ID.
  • aState which is the up/down button state.
Interface

implementation


//The stdcall directive is required to ensure that the right-to-left calling convention is used
procedure TouchItCallback(aValue :integer; aState :integer); stdcall;
begin

case aState of

0 : //Insert the button up event code here...
1 : //Insert the button down event code here...

end;

end;

//Make the procedure available for an external call
exports

TouchItCallback;

Copyright © 2011 Chessware SA