Skip to content

Commit c3fde24

Browse files
committed
Prepare 21.2.0 release.
1 parent fde6ae4 commit c3fde24

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
66

77
## [Unreleased]
88

9+
## [21.2.0] - 2026-04-04
10+
911
### Added
1012

1113
- `tcod.event.MouseWheel` now has `which`, `window_id`, `position` and `integer_position` attributes.

tcod/event.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -728,26 +728,26 @@ class MouseWheel(Event):
728728
position: Point[float] = attrs.field(default=Point(0.0, 0.0))
729729
"""Coordinates of the mouse for this event.
730730
731-
.. versionadded:: Unreleased
731+
.. versionadded:: 21.2
732732
"""
733733

734734
which: int = 0
735735
"""Mouse device ID for this event.
736736
737-
.. versionadded:: Unreleased
737+
.. versionadded:: 21.2
738738
"""
739739

740740
window_id: int = 0
741741
"""Window ID with mouse focus.
742742
743-
.. versionadded:: Unreleased
743+
.. versionadded:: 21.2
744744
"""
745745

746746
@property
747747
def integer_position(self) -> Point[int]:
748748
"""Integer coordinates of this event.
749749
750-
.. versionadded:: Unreleased
750+
.. versionadded:: 21.2
751751
"""
752752
x, y = self.position
753753
return Point(floor(x), floor(y))

0 commit comments

Comments
 (0)