Ansys Learning Forum › Forums › Discuss Simulation › Embedded Software › Mouse wheel capture in SCADE Display › Reply To: Mouse wheel capture in SCADE Display
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.