Hermes
0.7.0
Linux game streaming host
Toggle main menu visibility
Loading...
Searching...
No Matches
kwin_input.h
Go to the documentation of this file.
1
5
#pragma once
6
7
#include "
virtualhid_common.h
"
8
9
#include <cstdint>
10
11
namespace
platf::kwin_input {
12
#ifdef HERMES_BUILD_KWIN_TRANSPORT
14
bool
active(
const
input_raw_t *raw);
15
16
void
move(input_raw_t *raw,
int
delta_x,
int
delta_y);
17
void
move_abs(input_raw_t *raw,
float
x,
float
y);
18
void
button(input_raw_t *raw,
int
button,
bool
release);
19
void
scroll(input_raw_t *raw,
int
high_resolution_distance,
bool
horizontal);
20
void
key(input_raw_t *raw, std::uint16_t key_code,
bool
release);
21
void
unicode(input_raw_t *raw,
const
char
*utf8,
int
size);
22
void
touch(client_input_raw_t *raw,
const
touch_input_t &touch);
23
#else
24
// Without the KWin transport no input is ever private, so these never run.
25
inline
bool
active(
const
input_raw_t *) {
26
return
false
;
27
}
28
29
inline
void
move(input_raw_t *,
int
,
int
) {}
30
31
inline
void
move_abs(input_raw_t *,
float
,
float
) {}
32
33
inline
void
button(input_raw_t *,
int
,
bool
) {}
34
35
inline
void
scroll(input_raw_t *,
int
,
bool
) {}
36
37
inline
void
key(input_raw_t *, std::uint16_t,
bool
) {}
38
39
inline
void
unicode(input_raw_t *,
const
char
*,
int
) {}
40
41
inline
void
touch(client_input_raw_t *,
const
touch_input_t &) {}
42
#endif
43
}
// namespace platf::kwin_input
virtualhid_common.h
Shared state for the Linux libvirtualhid input backend.
src
platform
linux
input
kwin_input.h
Generated by
1.18.0