DigitalController: MSVC warning fix

This commit is contained in:
Connor McLaughlin 2020-12-12 11:37:38 +10:00
parent a391ba1622
commit 420525e672

View file

@ -200,7 +200,7 @@ void DigitalController::LoadSettings(const char* section)
u8 DigitalController::GetButtonsLSBMask() const u8 DigitalController::GetButtonsLSBMask() const
{ {
constexpr u8 popn_controller_mask = constexpr u8 popn_controller_mask =
~(u8(1) << static_cast<u8>(Button::Right) | u8(1) << static_cast<u8>(Button::Down) | static_cast<u8>(~(u8(1) << static_cast<u8>(Button::Right) | u8(1) << static_cast<u8>(Button::Down) |
u8(1) << static_cast<u8>(Button::Left)); u8(1) << static_cast<u8>(Button::Left)));
return m_popn_controller_mode ? popn_controller_mask : 0xFF; return m_popn_controller_mode ? popn_controller_mask : 0xFF;
} }