Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmake/compile_definitions/windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ set(PLATFORM_TARGET_FILES
"${CMAKE_SOURCE_DIR}/src/platform/windows/misc.cpp"
"${CMAKE_SOURCE_DIR}/src/platform/windows/win_dark_mode.h"
"${CMAKE_SOURCE_DIR}/src/platform/windows/win_dark_mode.cpp"
"${CMAKE_SOURCE_DIR}/src/platform/windows/clipboard.h"
"${CMAKE_SOURCE_DIR}/src/platform/windows/clipboard.cpp"
"${CMAKE_SOURCE_DIR}/src/platform/windows/input.cpp"
"${CMAKE_SOURCE_DIR}/src/platform/windows/virtual_mouse.h"
"${CMAKE_SOURCE_DIR}/src/platform/windows/virtual_mouse.cpp"
Expand Down Expand Up @@ -140,4 +142,4 @@ list(PREPEND PLATFORM_LIBRARIES
if(SUNSHINE_ENABLE_TRAY)
list(APPEND PLATFORM_TARGET_FILES
"${CMAKE_SOURCE_DIR}/third-party/tray/src/tray_windows.c")
endif()
endif()
5 changes: 4 additions & 1 deletion src/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,9 @@ namespace config {
true, // always send scancodes
true, // high resolution scrolling
true, // native pen/touch support
true, // clipboard sync
true, // virtual mouse (use driver if available)
false, // draw mouse cursor in AMF capture
};

sunshine_t sunshine {
Expand Down Expand Up @@ -1370,6 +1372,7 @@ namespace config {

bool_f(vars, "high_resolution_scrolling", input.high_resolution_scrolling);
bool_f(vars, "native_pen_touch", input.native_pen_touch);
bool_f(vars, "clipboard_sync", input.clipboard_sync);
bool_f(vars, "virtual_mouse", input.virtual_mouse);
bool_f(vars, "amf_draw_mouse_cursor", input.amf_draw_mouse_cursor);

Expand Down Expand Up @@ -1788,4 +1791,4 @@ namespace config {
return false;
}
}
} // namespace config
} // namespace config
3 changes: 2 additions & 1 deletion src/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ namespace config {

bool high_resolution_scrolling;
bool native_pen_touch;
bool clipboard_sync;
bool virtual_mouse;
bool amf_draw_mouse_cursor;
};
Expand Down Expand Up @@ -272,4 +273,4 @@ namespace config {

bool
update_full_config(const std::map<std::string, std::string> &fullConfig);
} // namespace config
} // namespace config
6 changes: 4 additions & 2 deletions src/platform/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,12 +290,14 @@ namespace platf {
int width, height;
};

// These values must match Limelight-internal.h's SS_FF_* constants!
// These are Sunshine-specific platform capability flags.
namespace platform_caps {
typedef uint32_t caps_t;

constexpr caps_t pen_touch = 0x01; // Pen and touch events
constexpr caps_t controller_touch = 0x02; // Controller touch events
constexpr caps_t clipboard_text = 0x04; // Clipboard text sync
constexpr caps_t clipboard_image = 0x08; // Clipboard image sync
}; // namespace platform_caps

struct gamepad_state_t {
Expand Down Expand Up @@ -1075,4 +1077,4 @@ namespace platf {
std::unique_ptr<high_precision_timer>
create_high_precision_timer();

} // namespace platf
} // namespace platf
Loading
Loading