Debian Codegraph @

xbmc/input/joysticks/interfaces/IButtonSequence.h

raw
1 /*
2 * Copyright (C) 2016-2024 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9 #pragma once
10
11 #include "input/joysticks/JoystickTypes.h"
12
13 namespace KODI
14 {
15 namespace JOYSTICK
16 {
17 /*!
18 * \ingroup joystick
19 */
20 class IButtonSequence
21 {
22 public:
23 virtual ~IButtonSequence() = default;
24
25 virtual bool OnButtonPress(const FeatureName& feature) = 0;
26
27 /*!
28 * \brief Returns true if a sequence is being captured to prevent input
29 * from falling through to the application
30 */
31 virtual bool IsCapturing() = 0;
32 };
33 } // namespace JOYSTICK
34 } // namespace KODI