Closed TheCodeingPadawan closed 5 years ago
Managed to get it to compile by commenting out the lines 65 - 74 in src\frontend\input\gamepad.rs
match e.event {
/* gilrs::EventType::ButtonPressed(button, _) =>
to_key(button).map(|key| input::Event::GamepadButton(e.id, input::State::Down, key)),
gilrs::EventType::ButtonReleased(button, _) =>
to_key(button).map(|key| input::Event::GamepadButton(e.id, input::State::Up, key)),
gilrs::EventType::ButtonChanged(gilrs::Button::RightTrigger2, value, _) =>
from_button(gilrs::Button::RightTrigger2).map(|axis| input::Event::GamepadAxis(e.id, value, axis)),
gilrs::EventType::ButtonChanged(gilrs::Button::LeftTrigger2, value, _) =>
from_button(gilrs::Button::LeftTrigger2).map(|axis| input::Event::GamepadAxis(e.id, value, axis)),
gilrs::EventType::AxisChanged(axis, value, _) =>
from_axis(axis).map(|axis| input::Event::GamepadAxis(e.id, value, axis)), */
_ => None,
}
I'll have a look - it's likely an error in a dependency version. Thanks for reporting!
@Ad-Man-Gamer please reopen if fix failed.
It now compiles without warnings nor errors.
I can not build on windows 10 pro 1903.
Toolchain : nightly-x86_64-pc-windows-msvc rustc 1.40.0-nightly (0e8a4b441 2019-10-16)
Error: