Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Interaction Layer » Iso11783IL_OPOnKeyActivation

Iso11783IL_OPOnKeyActivation

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void Iso11783IL_OPOnKeyActivation( dword objectID, dword parentID, dword keyCode, dword activation );

Description

The function is called by the node layer, if the user presses a soft key or button.

Parameters

  • objectID: Object ID of a soft key or button object
  • parentID: Object ID of the mask object
  • keyCode: Code of the soft key or button
  • activation: Activation code
    • 0: Key is release
    • 1: Key is pressed
    • 2: Key is held
    • 3: Press is canceled

Return Values

Example

void Iso11783IL_OPOnKeyActivation( dword object ID, dword parentID, dword keyCode, dword activation )
{
  if (activation == 1) {
    switch(keyCode) {
      case 1: DoSometing1(); break;
      case 2: DoSometing2(); break;
    }
  }
}