Struct radiant_rs::Input [] [src]

pub struct Input { /* fields omitted */ }

Basic keyboard and mouse support.

Methods

impl Input
[src]

Creates a new instance.

Returns an iterator over all keys and buttons

Returns current mouse coordinates relative to the window.

Returns mouse delta coordinates since last Display::poll_events().

Returns InputState for given key

Returns true if given key is down/pressed

Returns true if given key is up/released

Trait Implementations

impl Clone for Input
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more