-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathdummy-backend.cpp
More file actions
42 lines (30 loc) · 770 Bytes
/
dummy-backend.cpp
File metadata and controls
42 lines (30 loc) · 770 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <obs-module.h>
#include "plugin-macros.generated.h"
#include "dummy-backend.hpp"
#define debug(...) blog(LOG_INFO, __VA_ARGS__)
dummy_backend::dummy_backend() {}
dummy_backend::~dummy_backend() {}
void dummy_backend::set_config(struct obs_data *) {}
void dummy_backend::set_pantilt_speed(int pan, int tilt)
{
if (pan == prev_pan && tilt == prev_tilt)
return;
blog(LOG_INFO, "set_pantilt_speed: %d %d", pan, tilt);
prev_pan = pan;
prev_tilt = tilt;
}
void dummy_backend::set_zoom_speed(int zoom)
{
if (zoom == prev_zoom)
return;
blog(LOG_INFO, "set_zoom_speed: %d", zoom);
prev_zoom = zoom;
}
void dummy_backend::recall_preset(int preset)
{
blog(LOG_INFO, "recall_preset: %d", preset);
}
float dummy_backend::get_zoom()
{
return 1.0f;
}