Struct stick::Remapper [−][src]
pub struct Remapper { /* fields omitted */ }
A structure to remap an Input
to a different Input
.
Methods
impl Remapper
[src]
impl Remapper
pub fn new(id: i32, remapper: fn(_: (usize, Input)) -> (usize, Input)) -> Self
[src]
pub fn new(id: i32, remapper: fn(_: (usize, Input)) -> (usize, Input)) -> Self
Create a new remapping. id
is which joystick type should remap an
input, 0 for all. remapper
is the function to do the remapping.