Skip to content

Commit 65ec5b9

Browse files
committed
Prepare 15.0.0 release.
1 parent d1d85a9 commit 65ec5b9

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@ Changes relevant to the users of python-tcod are documented here.
44
This project adheres to [Semantic Versioning](https://semver.org/) since version `2.0.0`.
55

66
## [Unreleased]
7+
8+
## [15.0.0] - 2023-01-04
79
### Changed
8-
- Updated the case of window event types to match their type annotations.
10+
- Modified the letter case of window event types to match their type annotations.
911
This may cause regressions. Run Mypy to check for ``[comparison-overlap]`` errors.
12+
- Mouse event attributes have been changed ``.pixel -> .position`` and ``.pixel_motion -> .motion``.
13+
- `Context.convert_event` now returns copies of events with mouse coordinates converted into tile positions.
14+
15+
### Deprecated
16+
- Mouse event pixel and tile attributes have been deprecated.
1017

1118
## [14.0.0] - 2022-12-09
1219
### Added

tcod/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def convert_event(self, event: _Event) -> _Event:
265265
# Tile coordinates are used in the returned event.
266266
print(f"Tiles: {event_tile.position=}, {event_tile.motion=}")
267267
268-
.. versionchanged:: Unreleased
268+
.. versionchanged:: 15.0
269269
Now returns a new event with the coordinates converted into tiles.
270270
"""
271271
event_copy = copy.copy(event)

tcod/event.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ class MouseState(Event):
398398
399399
.. versionadded:: 9.3
400400
401-
.. versionchanged:: Unreleased
401+
.. versionchanged:: 15.0
402402
Renamed `pixel` attribute to `position`.
403403
"""
404404

@@ -484,7 +484,7 @@ class MouseMotion(MouseState):
484484
* tcod.event.BUTTON_X1MASK
485485
* tcod.event.BUTTON_X2MASK
486486
487-
.. versionchanged:: Unreleased
487+
.. versionchanged:: 15.0
488488
Renamed `pixel` attribute to `position`.
489489
Renamed `pixel_motion` attribute to `motion`.
490490
"""

0 commit comments

Comments
 (0)