PurpleKingdomGames / indigo

An FP game engine for Scala.
https://indigoengine.io/
MIT License
650 stars 60 forks source link

Updates the Mouse Wheel to allow for more than 1 axis #696

Closed hobnob closed 9 months ago

hobnob commented 9 months ago

The mouse wheel event previously had an amount property, which represented the movement on the Y axis of a mouse wheel (the up/down motion). However, many devices support more than 1 axis (such as side scrolling), and so this is now represented by the properties deltaX, deltaY, and deltaZ.

The 2 parameter constructor and deconstructor remain the same (assigning the amount to the deltaY), and so the tests for this remain the same.

This is, however, a breaking change, with anyone who currently uses the amount property needing to change that accessor to deltaY.