kodi
xbmc
input
InputTranslator.h
1
/*
2
* Copyright (C) 2018-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 "InputTypes.h"
12
13
namespace
KODI
14
{
15
namespace
INPUT
16
{
17
class
CInputTranslator
18
{
19
public
:
35
static
CARDINAL_DIRECTION
VectorToCardinalDirection
(
float
x,
float
y);
36
52
static
INTERCARDINAL_DIRECTION
VectorToIntercardinalDirection
(
float
x,
float
y);
53
};
54
}
// namespace INPUT
55
}
// namespace KODI
KODI::INPUT::CInputTranslator::VectorToIntercardinalDirection
static INTERCARDINAL_DIRECTION VectorToIntercardinalDirection(float x, float y)
Get the closest cardinal or intercardinal direction to the given vector.
Definition:
InputTranslator.cpp:31
KODI::INPUT::CInputTranslator
Definition:
InputTranslator.h:17
KODI
Definition:
AudioDecoder.h:18
KODI::INPUT::CInputTranslator::VectorToCardinalDirection
static CARDINAL_DIRECTION VectorToCardinalDirection(float x, float y)
Get the closest cardinal direction to the given vector.
Definition:
InputTranslator.cpp:17
Generated by
1.8.13