| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
use cfg_if::cfg_if; |
| 12 |
|
| 13 |
cfg_if! { |
| 14 |
if #[cfg(any( |
| 15 |
target_os = "linux", |
| 16 |
target_os = "l4re", |
| 17 |
target_os = "android", |
| 18 |
target_os = "emscripten" |
| 19 |
))] { |
| 20 |
pub(crate) use libc::{ |
| 21 |
ff_condition_effect, ff_constant_effect, ff_envelope, ff_periodic_effect, ff_ramp_effect, |
| 22 |
ff_replay, ff_rumble_effect, ff_trigger, input_absinfo, input_event, input_id, |
| 23 |
input_keymap_entry, uinput_abs_setup, uinput_setup, ABS_CNT, EV_CNT, FF_CNT, INPUT_PROP_CNT, |
| 24 |
KEY_CNT, LED_CNT, MSC_CNT, REL_CNT, SND_CNT, SW_CNT, UINPUT_MAX_NAME_SIZE, |
| 25 |
}; |
| 26 |
} else { |
| 27 |
mod non_linux; |
| 28 |
pub(crate) use non_linux::{ |
| 29 |
ff_condition_effect, ff_constant_effect, ff_envelope, ff_periodic_effect, ff_ramp_effect, |
| 30 |
ff_replay, ff_rumble_effect, ff_trigger, input_absinfo, input_event, input_id, |
| 31 |
input_keymap_entry, uinput_abs_setup, uinput_setup, ABS_CNT, EV_CNT, FF_CNT, INPUT_PROP_CNT, |
| 32 |
KEY_CNT, LED_CNT, MSC_CNT, REL_CNT, SND_CNT, SW_CNT, UINPUT_MAX_NAME_SIZE, |
| 33 |
}; |
| 34 |
} |
| 35 |
} |