summaryrefslogtreecommitdiffstats
path: root/xbmc/input/KeymapEnvironment.h
blob: 64ee67ab0058c64fbf7732d1ac6b24a0f70e8e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
 *  Copyright (C) 2017-2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#pragma once

#include "IKeymapEnvironment.h"

class CKeymapEnvironment : public IKeymapEnvironment
{
public:
  ~CKeymapEnvironment() override = default;

  // implementation of IKeymapEnvironment
  int GetWindowID() const override { return m_windowId; }
  void SetWindowID(int windowId) override { m_windowId = windowId; }
  int GetFallthrough(int windowId) const override;
  bool UseGlobalFallthrough() const override { return true; }
  bool UseEasterEgg() const override { return true; }

private:
  int m_windowId = -1;
};