Banuba SDK
Toggle main menu visibility
Loading...
Searching...
No Matches
libs
effect_player
bnb
effect_player
interfaces
input_manager.hpp
Go to the documentation of this file.
1
/// \file
2
/// \addtogroup EffectPlayer
3
/// @{
4
///
5
// AUTOGENERATED FILE - DO NOT MODIFY!
6
// This file was generated by Djinni from effect_player.djinni
7
8
#pragma once
9
10
#include "
bnb/types/interfaces/touch.hpp
"
11
#include <bnb/utils/defs.hpp>
12
#include <cstdint>
13
#include <string>
14
#include <unordered_map>
15
16
namespace
bnb {
namespace
interfaces {
17
18
/**
19
* Class to accepts touches from user.
20
*
21
* Key in each map is id of an event.
22
*/
23
class
BNB_EXPORT
input_manager
{
24
public
:
25
virtual
~input_manager
() {}
26
27
virtual
void
on_touches_began(
const
std::unordered_map<int64_t, ::bnb::interfaces::touch> & tocuhes) = 0;
28
29
virtual
void
on_touches_moved(
const
std::unordered_map<int64_t, ::bnb::interfaces::touch> & tocuhes) = 0;
30
31
virtual
void
on_touches_ended(
const
std::unordered_map<int64_t, ::bnb::interfaces::touch> & tocuhes) = 0;
32
33
virtual
void
on_touches_cancelled(
const
std::unordered_map<int64_t, ::bnb::interfaces::touch> & tocuhes) = 0;
34
35
virtual
void
on_rotation_gesture(
float
angle) = 0;
36
37
virtual
void
on_scale_gesture(
float
scale) = 0;
38
39
virtual
void
on_swipe_gesture(
float
dir_x,
float
dir_y) = 0;
40
41
virtual
void
on_double_tap_gesture(const ::bnb::interfaces::touch & pos) = 0;
42
43
virtual
void
on_long_tap_gesture(const ::bnb::interfaces::touch & pos) = 0;
44
45
virtual
void
on_gesture_ended(
const
std::string &
id
) = 0;
46
47
/** @param key Values are listed in https://www.glfw.org/docs/3.3/group__keys.html */
48
virtual
void
on_key_down
(int32_t key) = 0;
49
50
virtual
void
on_key_up(int32_t key) = 0;
51
};
52
53
} }
// namespace bnb::interfaces
54
/// @}
55
bnb::interfaces::input_manager
Class to accepts touches from user.
Definition
input_manager.hpp:23
bnb::interfaces::input_manager::on_key_down
virtual void on_key_down(int32_t key)=0
touch.hpp
Generated by
1.17.0