Banuba SDK
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 
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 
48 } } // namespace bnb::interfaces
49 /// @}
50 
touch.hpp
bnb::interfaces::input_manager
Class to accepts touches from user.
Definition: input_manager.hpp:23