On Web, handle coalesced events
This commit is contained in:
parent
31ebc5caf4
commit
4f3eacf01e
3 changed files with 71 additions and 18 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue