forked from moonlight-stream/moonlight-embedded
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3D, Dual screen, Motion Controls, and Sunshine fix (#18)
* Update moonlight-common-c with RTSP encryption * Fix __builtin_cpu_supports(aes) on GCC 9 and earlier * Update SDL_GameControllerDB * Add missing CMake include * Replace FindLibUUID.cmake with modified version from CMake project * Update moonlight-common-c * Replace ioctl() retry loops with drmIoctl() * Add rotation support for Rockchip Fixes moonlight-stream#878 * Treat devices as gamepads if they have a hat instead of an analog stick Fixes moonlight-stream#880 * Ignore CRCs in SDL mappings * Move CPU detection code into a separate file * Link util.c into the platform libraries * Replace SDL key handling with Moonlight Qt code The existing code had a bunch of incorrectly mapped keys and was using keysym instead of scancode which causes issues with non-US keyboards. * Remove a bunch of useless asserts * Provide better errors when RK renderer fails * Version 2.7.0 * Fix build warnings * Adds the ability to display side-by-side stereoscopic 3D images in 3D mode. Adds offset buffers for 3D images. * Add config option for displaying the stream across both displays. Adds video logic for stretching stream images across top and bottom displays. Simplifies 3D/Wide mode switching. * Adds touch handler for dual screen mode formats modified files * Fix build dependency error Add dual screen status to the loading print Move all wide mode setting to ensure_3d functions * Bump moonlight-common-c This seems to fix connection issues with sunshine v0.22 * Fix graphics glitch on exit * Add gyroscope/accelerometer output Add config option for enabling/disabling motion controls * Smooth out motion control behavior Fix gyroscope coefficient use Fix gyroscope directions (tested with cemu) --------- Co-authored-by: Cameron Gutman <[email protected]>
- Loading branch information
Showing
26 changed files
with
2,004 additions
and
1,399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,77 @@ | ||
# - Try to find LIBUUID | ||
# Find LIBUUID headers, libraries and the answer to all questions. | ||
# CMake - Cross Platform Makefile Generator | ||
# Copyright 2000-2024 Kitware, Inc. and Contributors | ||
# All rights reserved. | ||
# | ||
# LIBUUID_FOUND True if libuuid got found | ||
# LIBUUID_INCLUDE_DIRS Location of libuuid headers | ||
# LIBUUID_LIBRARIES List of libraries to use libuuid | ||
# | ||
# Copyright (c) 2008 Bjoern Ricks <[email protected]> | ||
# | ||
# Redistribution and use is allowed according to the terms of the New | ||
# BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# Distributed under the OSI-approved BSD 3-Clause License. See | ||
# https://cmake.org/licensing for details. | ||
# | ||
#[=======================================================================[.rst: | ||
FindLibUUID | ||
------------ | ||
Find LibUUID include directory and library. | ||
Imported Targets | ||
^^^^^^^^^^^^^^^^ | ||
An :ref:`imported target <Imported targets>` named | ||
``LibUUID::LibUUID`` is provided if LibUUID has been found. | ||
Result Variables | ||
^^^^^^^^^^^^^^^^ | ||
This module defines the following variables: | ||
``LibUUID_FOUND`` | ||
True if LibUUID was found, false otherwise. | ||
``LibUUID_INCLUDE_DIRS`` | ||
Include directories needed to include LibUUID headers. | ||
``LibUUID_LIBRARIES`` | ||
Libraries needed to link to LibUUID. | ||
Cache Variables | ||
^^^^^^^^^^^^^^^ | ||
This module uses the following cache variables: | ||
``LibUUID_LIBRARY`` | ||
The location of the LibUUID library file. | ||
``LibUUID_INCLUDE_DIR`` | ||
The location of the LibUUID include directory containing ``uuid/uuid.h``. | ||
The cache variables should not be used by project code. | ||
They may be set by end users to point at LibUUID components. | ||
#]=======================================================================] | ||
|
||
#----------------------------------------------------------------------------- | ||
find_library(LibUUID_LIBRARY | ||
NAMES uuid | ||
) | ||
mark_as_advanced(LibUUID_LIBRARY) | ||
|
||
find_path(LibUUID_INCLUDE_DIR | ||
NAMES uuid/uuid.h | ||
) | ||
mark_as_advanced(LibUUID_INCLUDE_DIR) | ||
|
||
#----------------------------------------------------------------------------- | ||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibUUID | ||
FOUND_VAR LibUUID_FOUND | ||
REQUIRED_VARS LibUUID_LIBRARY LibUUID_INCLUDE_DIR | ||
) | ||
set(LIBUUID_FOUND ${LibUUID_FOUND}) | ||
|
||
INCLUDE( FindPkgConfig ) | ||
|
||
IF ( LibUuid_FIND_REQUIRED ) | ||
SET( _pkgconfig_REQUIRED "REQUIRED" ) | ||
ELSE( LibUuid_FIND_REQUIRED ) | ||
SET( _pkgconfig_REQUIRED "" ) | ||
ENDIF ( LibUuid_FIND_REQUIRED ) | ||
|
||
IF ( LIBUUID_MIN_VERSION ) | ||
PKG_SEARCH_MODULE( LIBUUID ${_pkgconfig_REQUIRED} uuid>=${LIBUUID_MIN_VERSION} ) | ||
ELSE ( LIBUUID_MIN_VERSION ) | ||
PKG_SEARCH_MODULE( LIBUUID ${_pkgconfig_REQUIRED} uuid ) | ||
ENDIF ( LIBUUID_MIN_VERSION ) | ||
|
||
|
||
IF( NOT LIBUUID_FOUND AND NOT PKG_CONFIG_FOUND ) | ||
FIND_PATH( LIBUUID_INCLUDE_DIRS uuid/uuid.h ) | ||
FIND_LIBRARY( LIBUUID_LIBRARIES uuid) | ||
|
||
# Report results | ||
IF ( LIBUUID_LIBRARIES AND LIBUUID_INCLUDE_DIRS ) | ||
SET( LIBUUID_FOUND 1 ) | ||
IF ( NOT LIBUUID_FIND_QUIETLY ) | ||
MESSAGE( STATUS "Found libuuid: ${LIBUUID_LIBRARIES}" ) | ||
ENDIF ( NOT LIBUUID_FIND_QUIETLY ) | ||
ELSE ( LIBUUID_LIBRARIES AND LIBUUID_INCLUDE_DIRS ) | ||
IF ( LIBUUID_FIND_REQUIRED ) | ||
MESSAGE( SEND_ERROR "Could NOT find libuuid" ) | ||
ELSE ( LIBUUID_FIND_REQUIRED ) | ||
IF ( NOT LIBUUID_FIND_QUIETLY ) | ||
MESSAGE( STATUS "Could NOT find libuuid" ) | ||
ENDIF ( NOT LIBUUID_FIND_QUIETLY ) | ||
ENDIF ( LIBUUID_FIND_REQUIRED ) | ||
ENDIF ( LIBUUID_LIBRARIES AND LIBUUID_INCLUDE_DIRS ) | ||
ENDIF( NOT LIBUUID_FOUND AND NOT PKG_CONFIG_FOUND ) | ||
|
||
MARK_AS_ADVANCED( LIBUUID_LIBRARIES LIBUUID_INCLUDE_DIRS ) | ||
#----------------------------------------------------------------------------- | ||
# Provide documented result variables and targets. | ||
if(LibUUID_FOUND) | ||
set(LibUUID_INCLUDE_DIRS ${LibUUID_INCLUDE_DIR}) | ||
set(LibUUID_LIBRARIES ${LibUUID_LIBRARY}) | ||
if(NOT TARGET LibUUID::LibUUID) | ||
add_library(LibUUID::LibUUID UNKNOWN IMPORTED) | ||
set_target_properties(LibUUID::LibUUID PROPERTIES | ||
IMPORTED_LOCATION "${LibUUID_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${LibUUID_INCLUDE_DIRS}" | ||
) | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.