Struct radiant_rs::Input[][src]

pub struct Input { /* fields omitted */ }

Basic keyboard and mouse support.

Methods

impl Input
[src]

Creates a new instance.

Important traits for InputIterator<'a>

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 true if given key is down/pressed.

Returns true if given key was just pressed or repeated due to still being held down (if report_repeats is true).

Returns true if given key is up/released.

Returns true if given key was just released.

Returns InputState for given key.

Trait Implementations

impl Clone for Input
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Input
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Input

impl Sync for Input