-
-
February 8, 2024 at 10:50 amŁukasz KarmelitaSubscriber
For my SCADE Display specification, is-it possible to capture the mouse wheel up and down movements?
-
February 8, 2024 at 3:56 pmLudovic OddosAnsys 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.
-
- The topic ‘Mouse wheel capture in SCADE Display’ is closed to new replies.
-
1882
-
802
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.