Struct bidrag::InputSubsystem [−][src]
pub struct InputSubsystem { /* fields omitted */ }
Methods
impl InputSubsystem
[src]
impl InputSubsystem
pub fn new(mouseSens: (f64, f64)) -> InputSubsystem
[src]
pub fn new(mouseSens: (f64, f64)) -> InputSubsystem
pub fn update_kb_bind(&mut self, key: Key, pressed: bool)
[src]
pub fn update_kb_bind(&mut self, key: Key, pressed: bool)
Update all axes which depend on this key
pub fn update_mouseaxes_bind(&mut self, axes: (f64, f64))
[src]
pub fn update_mouseaxes_bind(&mut self, axes: (f64, f64))
Update all axes which depend on the mouse's position
Update all axes bound to the mouse button
pub fn add_binding(&mut self, name: String, boundTo: Binding) -> usize
[src]
pub fn add_binding(&mut self, name: String, boundTo: Binding) -> usize
pub fn get_index(&self, name: &String) -> usize
[src]
pub fn get_index(&self, name: &String) -> usize
ALWAYS cache this. Although it's probably not too expensive, avoid calling as often as possible. normal get() is O(1), this is likely worse due to HashMap
pub fn get(&self, index: usize) -> f32
[src]
pub fn get(&self, index: usize) -> f32
pub fn get_prev(&self, index: usize) -> f32
[src]
pub fn get_prev(&self, index: usize) -> f32
pub fn get_delta(&self, index: usize) -> f32
[src]
pub fn get_delta(&self, index: usize) -> f32
Trait Implementations
impl Debug for InputSubsystem
[src]
impl Debug for InputSubsystem
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for InputSubsystem
[src]
impl Clone for InputSubsystem
fn clone(&self) -> InputSubsystem
[src]
fn clone(&self) -> InputSubsystem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for InputSubsystem
impl Send for InputSubsystem
impl Sync for InputSubsystem
impl Sync for InputSubsystem