Embedded Software

Embedded Software

Topics related to SCADE Suite, SCADE Display, SCADE One and more.

Mouse wheel capture in SCADE Display

    • Łukasz Karmelita
      Subscriber

      For my SCADE Display specification, is-it possible to capture the mouse wheel up and down movements?

    • Ludovic Oddos
      Ansys Employee

      In the SCADE Display specification, you can indeed capture mouse wheel up and down movements using the Pointer Event Listener object. This object is capable of recording various pointer events, including wheel movements for a mouse.

      Here's how you can interpret the values returned by the Pointer Event Listener for mouse wheel events:

      • 1 is associated to left click
      • 2 is associated to right click
      • 3 is associated to center click
      • 4 is associated with the wheel up movement.
      • 5 is associated with the wheel down movement.

      So, when you receive a value of 4 from the Pointer Event Listener, it indicates that the mouse wheel has been scrolled up, and when you receive a value of 5, it indicates that the mouse wheel has been scrolled down.

      You can use these values to trigger specific actions or functions in your SCADE Display model based on the direction of the mouse wheel movement.

Viewing 1 reply thread
  • The topic ‘Mouse wheel capture in SCADE Display’ is closed to new replies.