Split keyboard and mouse permission (resolves #45)

This commit is contained in:
Yukino Song
2024-09-20 22:19:47 +08:00
parent 81de679fba
commit 5829bd1c76
5 changed files with 24 additions and 11 deletions

View File

@@ -44,8 +44,9 @@ namespace crypto {
input_controller = _input << 0, // Allow controller input
input_touch = _input << 1, // Allow touch input
input_pen = _input << 2, // Allow pen input
input_kbdm = _input << 3, // Allow kbd/mouse input
_all_inputs = input_controller | input_touch | input_pen | input_kbdm,
input_mouse = _input << 3, // Allow mouse input
input_kbd = _input << 4, // Allow keyboard input
_all_inputs = input_controller | input_touch | input_pen | input_mouse | input_kbd,
_operation = _input << 8, // Operation permission group
clipboard_set = _operation << 0, // Allow set clipboard from client