make inventory button an one-shot button

This commit is contained in:
Alula 2021-04-28 21:33:39 +02:00
parent 13bbf897dd
commit 65be03261c
No known key found for this signature in database
GPG Key ID: 3E00485503A1D8BA
1 changed files with 2 additions and 3 deletions

View File

@ -185,13 +185,12 @@ impl PlayerController for TouchPlayerController {
self.state.inventory()
|| state
.touch_controls
.point_in(Rect::new_size(
.consume_click_in(Rect::new_size(
state.canvas_size.0 as isize - 48 - right,
top,
48,
48,
))
.is_some(),
)),
);
self.state.set_jump(