blob: 72e68080fb3063369ed87c9fa762ed548cd9014c [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "garnet/bin/ui/input_reader/hid_decoder.h"
namespace mozart {
HidDecoder::HidDecoder() = default;
HidDecoder::~HidDecoder() = default;
bool HidDecoder::use_legacy_mode() const {
Protocol p = protocol();
return p != Protocol::Gamepad && p != Protocol::Buttons &&
p != Protocol::LightSensor && p != Protocol::Touch &&
p != Protocol::Touchpad;
}
} // namespace mozart