Struct radiant_rs::Input [] [src]

pub struct Input { /* fields omitted */ }

Basic keyboard and mouse support.

Methods

impl Input
[src]

[src]

Creates a new instance.

[src]

Returns an iterator over all keys and buttons.

[src]

Returns current mouse coordinates relative to the window.

[src]

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

[src]

Returns true if given key is down/pressed.

[src]

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

[src]

Returns true if given key is up/released.

[src]

Returns true if given key was just released.

[src]

Returns InputState for given key.

Trait Implementations

impl Clone for Input
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more