mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-12-01 01:29:38 +00:00
chore: update Virtual HID requirements and mouse refresh (#5547)
This commit is contained in:
1 parent
7a59212a75
commit
05b49f0d87
17 files changed
+207
-75
No files matched your search
@@ -31,6 +31,7 @@ extern "C" {
|
||||
#include "input.h"
|
||||
#include "logging.h"
|
||||
#include "platform/common.h"
|
||||
#include "platform/virtualhid_input.h"
|
||||
#include "thread_pool.h"
|
||||
#include "utility.h"
|
||||
|
||||
@@ -2090,6 +2091,15 @@ namespace input {
|
||||
});
|
||||
}
|
||||
|
||||
void refresh_virtual_mouse() {
|
||||
dispatch_input_task([]() {
|
||||
if (platf_input) {
|
||||
reset_mouse_buttons();
|
||||
platf::virtualhid::get_input_context(platf_input).refresh_mouse();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Allocate and initialize platform input state for a stream.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user