pistoncore-input 0.19.0

A structure for user input
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#![feature(test)]

extern crate test;
extern crate input;

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

#[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); });
}