Struct mini_gl_fb::breakout::BasicInput[][src]

pub struct BasicInput {
    pub mouse_pos: (usize, usize),
    pub mouse: HashMap<MouseButton, (bool, bool)>,
    pub keys: HashMap<VirtualKeyCode, (bool, bool)>,
    pub modifiers: ModifiersState,
    pub resized: bool,
}

Fields

The mouse position in buffer coordinates

Stores whether a mouse button was down and is down, in that order.

If a button has not been pressed yet it will not be in the map.

Stores the previous and current "key down" states, in that order.

If a key has not been pressed yet it will not be in the map.

Methods

impl BasicInput
[src]

If the mouse was pressed this last frame.

If the mouse is currently down.

If the mouse was released this last frame.

If the key was pressed this last frame.

If the key is currently down.

If the key was released this last frame.

Auto Trait Implementations

impl Send for BasicInput

impl Sync for BasicInput