RegisterOnDeviceButton

 

Declaration

Delphi

procedure RegisterOnDeviceButton(Handler: Pointer);

C/C++

SOPAD_API void SOPAD_registerOnDeviceButton(LPVOID lpHandler);

Description

Registers a procedure to be called when Button on Device is pressed.

Reference to Button code: OnDeviceButton, OnDeviceButtonEx

 

The function  pointed by lpHandler has the signature

  •   Delphi:  type TOnDeviceButtonCallback = procedure(Button, lParam: Cardinal);
  •  C/C++:  typedef void (*TOnDeviceButtonCallback)(ULONG Button, ULONG lParam);

Arguments

Handler

Pointer to a procedure of type TOnDeviceButtonCallback.

 

 Â