On Web, handle coalesced events

This commit is contained in:
dAxpeDDa 2023-06-02 14:23:09 +02:00 committed by daxpedda
parent 31ebc5caf4
commit 4f3eacf01e
3 changed files with 71 additions and 18 deletions

View file

@ -7,7 +7,7 @@ use std::convert::TryInto;
use web_sys::{HtmlCanvasElement, KeyboardEvent, MouseEvent, PointerEvent, WheelEvent};
bitflags! {
#[derive(Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct ButtonsState: u16 {
const LEFT = 0b001;
const RIGHT = 0b010;