Struct gilrs::GilrsBuilder
[−]
[src]
pub struct GilrsBuilder { /* fields omitted */ }
Allow to create Gilrs
with customized behaviour.
Methods
impl GilrsBuilder
[src]
fn new() -> Self
[src]
Create builder with default settings. Use build()
to create Gilrs
.
fn with_default_filters(self, default_filters: bool) -> Self
[src]
If true
, use axis_dpad_to_button
,
Jitter
and deadzone
filters with default parameters. Defaults to true
.
fn add_mappings(self, mappings: &str) -> Self
[src]
Adds SDL mappings.
fn build(self) -> Gilrs
[src]
Creates Gilrs
.