Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions arcade/experimental/input_manager_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Example for handling input using the Arcade InputManager

If Python and Arcade are installed, this example can be run from the command line with:
python -m arcade.examples.input_manager
python -m arcade.experimental.input_manager_example
"""

import random
Expand All @@ -13,7 +13,7 @@
from pyglet.input import Controller

import arcade
from arcade.input import ActionState, ControllerAxes, ControllerButtons, InputManager, Keys
from arcade.input import ActionState, ControllerSticks, ControllerButtons, InputManager, Keys

WINDOW_WIDTH = 1280
WINDOW_HEIGHT = 720
Expand Down Expand Up @@ -112,7 +112,7 @@ def __init__(
self.INPUT_TEMPLATE.new_axis("Move")
self.INPUT_TEMPLATE.add_axis_input("Move", Keys.A, -1.0)
self.INPUT_TEMPLATE.add_axis_input("Move", Keys.D, 1.0)
self.INPUT_TEMPLATE.add_axis_input("Move", ControllerAxes.LEFT_STICK_X)
self.INPUT_TEMPLATE.add_axis_input("Move", ControllerSticks.LEFT_STICK_X)

# This is an example of how to dump an InputManager to a file. The serialize function
# returns a dictionary, so anything such as toml, yaml, or json could be used to save
Expand Down
Loading