[go: up one dir, main page]

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

#![feature(test)]

extern crate test;
extern crate input;

use test::Bencher;
use input::{FocusEvent, Input};

#[bench]
fn bench_input_focus(bencher: &mut Bencher) {
    let e = Input::Focus(false);
    bencher.iter(|| { let _: Option<Input> = FocusEvent::from_focused(true, &e); });
}