pub struct KeyStates<'a> { /* private fields */ }
Expand description

Keyboard key states

Helper methods are provided to check the state of key modifiers (shift, control and alt).

Implementations

Check if a key is pressed down

Prevents default processing of the key

Check if left shift key is pressed

Check if right shift key is pressed

Check if any of of the shift keys are pressed

Check if left control key is pressed

Check if right control key is pressed

Check if any of the control keys are pressed

Check if left alt key is pressed

Check if right alt key is pressed

Check if any of the alt keys are pressed

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.