File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,16 @@ Changes relevant to the users of python-tcod are documented here.
4
4
This project adheres to [ Semantic Versioning] ( https://semver.org/ ) since version ` 2.0.0 ` .
5
5
6
6
## [ Unreleased]
7
+
8
+ ## [ 15.0.0] - 2023-01-04
7
9
### 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.
9
11
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.
10
17
11
18
## [ 14.0.0] - 2022-12-09
12
19
### Added
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ def convert_event(self, event: _Event) -> _Event:
265
265
# Tile coordinates are used in the returned event.
266
266
print(f"Tiles: {event_tile.position=}, {event_tile.motion=}")
267
267
268
- .. versionchanged:: Unreleased
268
+ .. versionchanged:: 15.0
269
269
Now returns a new event with the coordinates converted into tiles.
270
270
"""
271
271
event_copy = copy .copy (event )
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ class MouseState(Event):
398
398
399
399
.. versionadded:: 9.3
400
400
401
- .. versionchanged:: Unreleased
401
+ .. versionchanged:: 15.0
402
402
Renamed `pixel` attribute to `position`.
403
403
"""
404
404
@@ -484,7 +484,7 @@ class MouseMotion(MouseState):
484
484
* tcod.event.BUTTON_X1MASK
485
485
* tcod.event.BUTTON_X2MASK
486
486
487
- .. versionchanged:: Unreleased
487
+ .. versionchanged:: 15.0
488
488
Renamed `pixel` attribute to `position`.
489
489
Renamed `pixel_motion` attribute to `motion`.
490
490
"""
You can’t perform that action at this time.
0 commit comments