Skip to content

Commit 6a52632

Browse files
authored
Input fixes (#2541)
* Example use old SpriteList.on_update * _generate_next_value_ is a staticmethod
1 parent e3e02b6 commit 6a52632

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arcade/future/input/input_manager_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def on_key_press(self, key, modifiers):
213213
player.input_manager.allow_keyboard = False
214214

215215
def on_update(self, delta_time: float):
216-
self.player_list.on_update(delta_time)
216+
self.player_list.update(delta_time)
217217
for label, player in zip(self.player_device_labels, self.players):
218218
position_x, position_y = player.position
219219
position_y += FLOAT_HEIGHT

arcade/future/input/inputs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def __new__(cls, value, *args, **kwargs):
3737
def __str__(self):
3838
return str(self.value)
3939

40+
@staticmethod
4041
def _generate_next_value_(name, *_):
4142
return name
4243

0 commit comments

Comments
 (0)