Skip to content

Commit

Permalink
Prepare 13.8.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
HexDecimal committed Sep 23, 2022
1 parent 383eec5 commit 26f309b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 18 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
34 changes: 17 additions & 17 deletions tcod/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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`
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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`
Expand Down Expand Up @@ -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::
Expand Down Expand Up @@ -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::
Expand Down Expand Up @@ -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):
Expand All @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]:
Expand Down
2 changes: 1 addition & 1 deletion tcod/sdl/joystick.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""SDL Joystick Support
.. versionadded:: Unreleased
.. versionadded:: 13.8
"""
from __future__ import annotations

Expand Down

0 comments on commit 26f309b

Please sign in to comment.