pistoncore-input 1.0.1

A structure for user input
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(test)]

extern crate input;
extern crate test;

use input::{Input, UpdateArgs, UpdateEvent};
use test::Bencher;

#[bench]
fn bench_input_update(bencher: &mut Bencher) {
    let e = Input::Update(UpdateArgs { dt: 0.0 });
    let args = UpdateArgs { dt: 1.0 };
    bencher.iter(|| {
        let _: Option<Input> = UpdateEvent::from_update_args(&args, &e);
    });
}