Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions arcade/camera/camera_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ def point_in_view(self, point: Point2) -> bool:
"""
# This is unwrapped from standard Vec2 operations,
# The construction and garbage collection of the vectors would
# increase this method's cost by ~4x
# increase this method's cost by ~4x

pos = self.position
diff = point[0] - pos[0], point[1] - pos[1]

Expand Down
8 changes: 6 additions & 2 deletions arcade/future/input/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ class ControllerButtons(StrEnum):
BOTTOM_FACE = "a"
LEFT_SHOULDER = "leftshoulder"
RIGHT_SHOULDER = "rightshoulder"
LEFT_TRIGGER = "lefttrigger"
RIGHT_TRIGGER = "righttrigger"
START = "start"
BACK = "back"
GUIDE = "guide"
Expand Down Expand Up @@ -101,11 +103,13 @@ class PSControllerButtons(StrEnum):
CROSS = ControllerButtons.BOTTOM_FACE
L1 = ControllerButtons.LEFT_SHOULDER
R1 = ControllerButtons.RIGHT_SHOULDER
L2 = ControllerButtons.LEFT_TRIGGER
R2 = ControllerButtons.RIGHT_TRIGGER
L3 = ControllerButtons.LEFT_STICK
R3 = ControllerButtons.RIGHT_STICK
START = ControllerButtons.START
SELECT = ControllerButtons.BACK
GUIDE = ControllerButtons.GUIDE
LEFT_STICK = ControllerButtons.LEFT_STICK
RIGHT_STICK = ControllerButtons.RIGHT_STICK
DPAD_LEFT = ControllerButtons.DPAD_LEFT
DPAD_RIGHT = ControllerButtons.DPAD_RIGHT
DPAD_UP = ControllerButtons.DPAD_UP
Expand Down
Loading