From 26f309b396ff8cd4fe276b163a8137983bda8999 Mon Sep 17 00:00:00 2001 From: Kyle Benesch <4b796c65+github@gmail.com> Date: Thu, 22 Sep 2022 23:17:17 -0700 Subject: [PATCH] Prepare 13.8.0 release. --- CHANGELOG.md | 2 ++ tcod/event.py | 34 +++++++++++++++++----------------- tcod/sdl/joystick.py | 2 +- 3 files changed, 20 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c53986f..df42adef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Changes relevant to the users of python-tcod are documented here. This project adheres to [Semantic Versioning](https://semver.org/) since version `2.0.0`. ## [Unreleased] + +## [13.8.0] - 2022-09-22 ### Added - Ported SDL2 joystick handing as `tcod.sdl.joystick`. - New joystick related events. diff --git a/tcod/event.py b/tcod/event.py index dba3054a..f6783e4b 100644 --- a/tcod/event.py +++ b/tcod/event.py @@ -784,7 +784,7 @@ def __str__(self) -> str: class JoystickEvent(Event): """A base class for joystick events. - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def __init__(self, type: str, which: int): @@ -809,7 +809,7 @@ def __str__(self) -> str: class JoystickAxis(JoystickEvent): """When a joystick axis changes in value. - .. versionadded:: Unreleased + .. versionadded:: 13.8 .. seealso:: :any:`tcod.sdl.joystick` @@ -843,7 +843,7 @@ def __str__(self) -> str: class JoystickBall(JoystickEvent): """When a joystick ball is moved. - .. versionadded:: Unreleased + .. versionadded:: 13.8 .. seealso:: :any:`tcod.sdl.joystick` @@ -881,7 +881,7 @@ def __str__(self) -> str: class JoystickHat(JoystickEvent): """When a joystick hat changes direction. - .. versionadded:: Unreleased + .. versionadded:: 13.8 .. seealso:: :any:`tcod.sdl.joystick` @@ -914,7 +914,7 @@ def __str__(self) -> str: class JoystickButton(JoystickEvent): """When a joystick button is pressed or released. - .. versionadded:: Unreleased + .. versionadded:: 13.8 Example:: @@ -955,7 +955,7 @@ def __str__(self) -> str: class JoystickDevice(JoystickEvent): """An event for when a joystick is added or removed. - .. versionadded:: Unreleased + .. versionadded:: 13.8 Example:: @@ -984,7 +984,7 @@ def from_sdl_event(cls, sdl_event: Any) -> JoystickDevice: class ControllerEvent(Event): """Base class for controller events. - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def __init__(self, type: str, which: int): @@ -1010,7 +1010,7 @@ def __str__(self) -> str: class ControllerAxis(ControllerEvent): """When a controller axis is moved. - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ type: Final[Literal["CONTROLLERAXISMOTION"]] # type: ignore[misc] @@ -1047,7 +1047,7 @@ def __str__(self) -> str: class ControllerButton(ControllerEvent): """When a controller button is pressed or released. - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ type: Final[Literal["CONTROLLERBUTTONDOWN", "CONTROLLERBUTTONUP"]] # type: ignore[misc] @@ -1086,7 +1086,7 @@ def __str__(self) -> str: class ControllerDevice(ControllerEvent): """When a controller is added, removed, or remapped. - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ type: Final[Literal["CONTROLLERDEVICEADDED", "CONTROLLERDEVICEREMOVED", "CONTROLLERDEVICEREMAPPED"]] # type: ignore[misc] @@ -1413,37 +1413,37 @@ def ev_windowhittest(self, event: tcod.event.WindowEvent) -> Optional[T]: def ev_joyaxismotion(self, event: tcod.event.JoystickAxis) -> Optional[T]: """ - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def ev_joyballmotion(self, event: tcod.event.JoystickBall) -> Optional[T]: """ - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def ev_joyhatmotion(self, event: tcod.event.JoystickHat) -> Optional[T]: """ - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def ev_joybuttondown(self, event: tcod.event.JoystickButton) -> Optional[T]: """ - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def ev_joybuttonup(self, event: tcod.event.JoystickButton) -> Optional[T]: """ - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def ev_joydeviceadded(self, event: tcod.event.JoystickDevice) -> Optional[T]: """ - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def ev_joydeviceremoved(self, event: tcod.event.JoystickDevice) -> Optional[T]: """ - .. versionadded:: Unreleased + .. versionadded:: 13.8 """ def ev_(self, event: Any) -> Optional[T]: diff --git a/tcod/sdl/joystick.py b/tcod/sdl/joystick.py index d83aa9c7..dde74192 100644 --- a/tcod/sdl/joystick.py +++ b/tcod/sdl/joystick.py @@ -1,6 +1,6 @@ """SDL Joystick Support -.. versionadded:: Unreleased +.. versionadded:: 13.8 """ from __future__ import annotations