MCPcopy Create free account
hub / github.com/Kethku/Pando / EventState

Class EventState

aspen/src/context_stack/event_state.rs:4–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2use winit::{event::{ElementState, Modifiers}, keyboard::Key};
3
4pub struct EventState {
5 pub window_size: Size,
6
7 pub mouse_position: Option<Point>,
8 pub previous_mouse_position: Option<Point>,
9 pub mouse_down: bool,
10 pub right_mouse_down: bool,
11 pub was_mouse_down: bool,
12 pub was_right_mouse_down: bool,
13 pub scroll_delta: Vec2,
14
15 pub modifiers: Modifiers,
16 pub key_events: Vec<KeyEvent>,
17}
18
19impl EventState {
20 pub fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…