Skip to content

Commit ee6b2d7

Browse files
committed
Promote new input package from future to top level
1 parent f9a89b2 commit ee6b2d7

10 files changed

Lines changed: 20 additions & 10 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Arcade [PyPi Release History](https://pypi.org/project/arcade/#history) page.
88
### New Features
99
- Support for running with Pyodide in web browsers.
1010

11+
### Breaking Changes
12+
- `arcade.future.input` package has been moved to the top level `arcade.input`
13+
1114
## 3.3.3
1215

1316
- Support for Python 3.14

arcade/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ def configure_logging(level: int | None = None):
238238
from arcade import math as math
239239
from arcade import shape_list as shape_list
240240
from arcade import hitbox as hitbox
241+
from arcade import input as input
241242
from arcade import experimental as experimental
242243
from arcade.types import rect
243244

@@ -387,6 +388,7 @@ def configure_logging(level: int | None = None):
387388
"get_default_texture",
388389
"get_default_image",
389390
"hitbox",
391+
"input",
390392
"experimental",
391393
"rect",
392394
"color",

arcade/future/input/input_manager_example.py renamed to arcade/examples/input_manager.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
"""
2+
Example for handling input using the Arcade InputManager
3+
4+
If Python and Arcade are installed, this example can be run from the command line with:
5+
python -m arcade.examples.input_manager
6+
"""
17
# type: ignore
28
import random
39
from collections.abc import Sequence
@@ -6,7 +12,7 @@
612
from pyglet.input import Controller
713

814
import arcade
9-
from arcade.future.input import ActionState, ControllerAxes, ControllerButtons, InputManager, Keys
15+
from arcade.input import ActionState, ControllerAxes, ControllerButtons, InputManager, Keys
1016

1117
WINDOW_WIDTH = 1280
1218
WINDOW_HEIGHT = 720

arcade/future/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from . import video
22
from . import light
3-
from . import input
43
from . import background
54
from . import splash
65

76
from .texture_render_target import RenderTargetTexture
87

9-
__all__ = ["video", "light", "input", "background", "RenderTargetTexture", "splash"]
8+
__all__ = ["video", "light", "background", "RenderTargetTexture", "splash"]
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# type: ignore
22
from __future__ import annotations
33

4-
from arcade.future.input import inputs
5-
from arcade.future.input.raw_dicts import RawAction, RawActionMapping, RawAxis, RawAxisMapping
4+
from arcade.input import inputs
5+
from arcade.input.raw_dicts import RawAction, RawActionMapping, RawAxis, RawAxisMapping
66

77

88
class Action:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from enum import Enum, auto
99
from sys import platform
1010

11-
from arcade.future.input.raw_dicts import RawBindBase
11+
from arcade.input.raw_dicts import RawBindBase
1212

1313

1414
class InputType(Enum):
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
from typing_extensions import TypedDict
1111

1212
import arcade
13-
from arcade.future.input import inputs
14-
from arcade.future.input.input_mapping import (
13+
from arcade.input import inputs
14+
from arcade.input.input_mapping import (
1515
Action,
1616
ActionMapping,
1717
Axis,
1818
AxisMapping,
1919
serialize_action,
2020
serialize_axis,
2121
)
22-
from arcade.future.input.inputs import InputEnum, InputType
23-
from arcade.future.input.raw_dicts import RawAction, RawAxis
22+
from arcade.input.inputs import InputEnum, InputType
23+
from arcade.input.raw_dicts import RawAction, RawAxis
2424
from arcade.types import OneOrIterableOf
2525
from arcade.utils import grow_sequence
2626

0 commit comments

Comments
 (0)