core, input_common: Miscellaneous fixes

bcat: Fix settings access

telemetry_session: Fix settings accesses

So this is what I get for testing with the web service disabled.

touch_from_button: Fix settings access for clang
This commit is contained in:
lat9nq 2021-06-28 19:41:39 -04:00
parent 7a8de138df
commit 0e5c74bc9e
3 changed files with 8 additions and 5 deletions

View file

@ -12,7 +12,8 @@ namespace InputCommon {
class TouchFromButtonDevice final : public Input::TouchDevice {
public:
TouchFromButtonDevice() {
const auto button_index = Settings::values.touch_from_button_map_index.GetValue();
const auto button_index =
static_cast<u64>(Settings::values.touch_from_button_map_index.GetValue());
const auto& buttons = Settings::values.touch_from_button_maps[button_index].buttons;
for (const auto& config_entry : buttons) {