1156 Commits (3e0df6ad0586bc435fc1571e8d7fa3953c900f04)

Author SHA1 Message Date
Romain Vimont 1a03206e36 Detect USB device disconnection
4 years ago
Romain Vimont 37987b822e Make acksync optional for AOA initialization
4 years ago
Romain Vimont 8fc9dca8cb Make serial optional to find USB devices
4 years ago
Romain Vimont 1c17f57c10 Find a list of devices instead of a single one
4 years ago
Romain Vimont d8b37fe189 Wrap libusb_device
4 years ago
Romain Vimont 0ee9e2ff51 Expose function to find a USB device
4 years ago
Romain Vimont 1ab3692f3d Add util function to read USB descriptor string
4 years ago
Romain Vimont bbef426a4b Split USB initialization and connection
4 years ago
Romain Vimont 2114f48185 Find device with USB context
4 years ago
Romain Vimont b779eca8d3 Remove libusb_device field
4 years ago
Romain Vimont adda47b0f7 Move sc_usb out of sc_aoa
4 years ago
Romain Vimont 48e3ff284f Make serial mandatory for sc_usb
4 years ago
Romain Vimont 1d6f9952ee Extract USB handling from AOA
4 years ago
Romain Vimont d48d191262 Rename HAVE_AOA_HID to HAVE_USB
4 years ago
Romain Vimont 2762f5d183 Move AOA/HID code to usb/
4 years ago
Romain Vimont c996a6d462 Fix socket close race condition
4 years ago
Romain Vimont 8ea6fb1f0f Print version on stdout
4 years ago
Romain Vimont b546c33eff Do not print scrcpy version twice on --version
4 years ago
Romain Vimont 4817cadd09 Fix code style
4 years ago
Romain Vimont 02b5e87802 Slightly reduce lock usage
4 years ago
Romain Vimont 8e4d3beb01 Fix return value on adb commands error
4 years ago
Romain Vimont 9d2e00697e Use sc_ prefix for control_msg enums
4 years ago
Romain Vimont f289d206ea Disable more actions if --no-control
4 years ago
Romain Vimont ca516f4318 Refactor if-block in cli
4 years ago
Romain Vimont 5d6076bffd Move misplaced break statements
4 years ago
Romain Vimont e0bce1725b Fix header guard prefix
4 years ago
Romain Vimont 063d103dd6 Capture mouse on start for --hid-mouse
4 years ago
Romain Vimont 4bf9c057fe Extract relative mode check to an inline function
4 years ago
Romain Vimont 17c97820b2 Never forward capture keys
4 years ago
Romain Vimont 8c7f0ed5ea Fix warning message
4 years ago
Romain Vimont ac038f276e Add missing break statement
4 years ago
Romain Vimont 1f65b1bf87 Remove inline hint
4 years ago
Romain Vimont d41a46dc95 Handle libusb_get_device_descriptor() error
4 years ago
Romain Vimont 308a1f8192 Simplify error handling in sc_aoa_init()
4 years ago
Romain Vimont 241a587e61 Fix missing HID mouse destructor call
4 years ago
Romain Vimont 7e35bfe382 Refactor if-blocks
4 years ago
Romain Vimont 855819bbd8 Remove redundant control boolean
4 years ago
Romain Vimont 557daf280e Pass NULL controller if control is disabled
4 years ago
Romain Vimont 0b8e926330 Do not process finger events if no control
4 years ago
Romain Vimont 0ec3361bc9 Fix crash on --no-control
4 years ago
Romain Vimont 81ff7ebd06 Simplify event loop
4 years ago
Romain Vimont 1ffe312369 Handle file drop from input_manager
4 years ago
Romain Vimont ebef027c4f Do not return status for event handling
4 years ago
Romain Vimont 8e4e7d42f1 Fix leak on file pusher error
4 years ago
Romain Vimont b066dc0bbf Rename file_handler to sc_file_pusher
4 years ago
Romain Vimont 3a0ba7d0a4 Disable downsizing on error if V4L2 is enabled
4 years ago
Romain Vimont 75c5dc6859 Position and size the window on first frame
4 years ago
Romain Vimont fa30f9806a Move "show window" call on first frame
4 years ago
Romain Vimont 4fb61ac83d Fix screen comments
4 years ago
Romain Vimont 15bf27afdd Make auto-downsize on error optional
4 years ago
Romain Vimont b3ff1f6b3b Upgrade FFmpeg (5.0) for Windows 64-bit
4 years ago
Romain Vimont a2495c5ef1 Use symlink to simplify Windows ffmpeg dependency
4 years ago
Bernhard Rosenkränzer 5e8fa56e7a Fix build with ffmpeg 5.0
4 years ago
Romain Vimont 1c71bd16be Use constant string for known booleans
4 years ago
Romain Vimont afa4a1b728 Use sc_ prefix for control_msg
4 years ago
Romain Vimont 3a4d5c7f18 Use sc_ prefix for controller
4 years ago
Romain Vimont 5f7ddff8ae Use sc_ prefix for input_manager
4 years ago
Romain Vimont 2a0c2e5e99 Use sc_ prefix for screen
4 years ago
Romain Vimont a6644e831b Fix code style
4 years ago
Romain Vimont 75655194fb Do not pass scrcpy_options to keyboard inject
4 years ago
Romain Vimont cba84f6999 Add support for HID mouse
4 years ago
Romain Vimont ed2e45ee29 Refactor AOA/HID keyboard initialization
4 years ago
Romain Vimont aee1b39790 Add CLAMP() macro
4 years ago
Romain Vimont 17d01b5bf7 Add UI/UX support for relative mouse mode
4 years ago
Romain Vimont 40fca82b60 Forward all motion events to mouse processors
4 years ago
Romain Vimont 643293752d Provide relative mouse motion vector in event
4 years ago
Romain Vimont b5855e5deb Add relative mode flag to mouse processors
4 years ago
Romain Vimont 924375487e Pass buttons state in scroll events
4 years ago
Romain Vimont 7121a0dc53 Destroy acksync immediately on error
4 years ago
Romain Vimont f04812fc71 Remove duplicate boolean
4 years ago
Romain Vimont 5ce1ccde85 Reorder controller and HID initialization
4 years ago
Romain Vimont 6102a0b5bb Move input_manager into screen
4 years ago
Romain Vimont 2b34e1224e Use separate struct for input manager params
4 years ago
Romain Vimont a9d23400cd Remove unused enum value requiring SDL 2.0.18
4 years ago
Romain Vimont cca3c953da Enable virtual finger only on left click
4 years ago
Romain Vimont 57f1655d4b Make some mouse processors ops optional
4 years ago
Romain Vimont bc674721dc Make process_text() optional
4 years ago
Romain Vimont 63e29b1782 Apply buttons mask if not --forward-all-clicks
4 years ago
Romain Vimont 3c15cbdaf8 Reorder mouse processor ops
4 years ago
Romain Vimont 96e0e89740 Simplify mouse injection implementation
4 years ago
Romain Vimont a1f2f5fbd3 Make some event conversions infallible
4 years ago
Romain Vimont 9460bdd87b Use scrcpy input events for mouse processors
4 years ago
Romain Vimont b4b638e8fe Use scrcpy input events for key processors
4 years ago
Romain Vimont e4396e34c2 Use common sc_action in input manager
4 years ago
Romain Vimont b8fed50639 Add intermediate input events layer
4 years ago
Romain Vimont d540c72e7c Rename SC_MOD_* to SC_SHORTCUT_MOD_*
4 years ago
Romain Vimont cd5891fee6 Remove actions bitset
4 years ago
Romain Vimont 26ee7ce566 Expose V4L2 option on all platforms
4 years ago
Romain Vimont ba28d817fb Fail on unsupported HID option
4 years ago
Romain Vimont 37124e1452 Avoid unused function warning
4 years ago
Romain Vimont 6b9f397733 Happy new year 2022!
4 years ago
Romain Vimont 1fbc590b26 Fix memory leaks in tests
4 years ago
Romain Vimont 826ddf1a6e Document HID keyboard events
4 years ago
Romain Vimont 6261bb0b5a Ignore display bounds on resize-to-fit
4 years ago
Romain Vimont 2f091beeaa Simplify sc_size assignment
4 years ago
Romain Vimont ad11c5babb Set DPI awareness for Windows
4 years ago
Romain Vimont feb250a973 Fix typos reported by codespell
4 years ago
Chih-Hsuan Yen d049671908 Fix adb server hang
4 years ago
Romain Vimont 0685c491cd Improve crossbuild configuration
4 years ago
Romain Vimont 29570ee819 Add metadata to scrcpy.exe for Windows
4 years ago
Romain Vimont cfcbc2ac21 Add icon to scrcpy.exe
4 years ago
Romain Vimont 2cb4e04209 Update copyright date to 2021 in manpage
4 years ago
Romain Vimont 878ffffc36 Update environment variables section in manpage
4 years ago
Romain Vimont f0361fc8b3 Add environment variables in help
4 years ago
Romain Vimont b5d4ec61fc Move newline generation in help
4 years ago
Romain Vimont 3ada5c51bc Rename scrcpy threads
4 years ago
Romain Vimont 09c55b0f93 Set "low delay" decoder flag
4 years ago
Romain Vimont 682a691173 Use timers with microsecond precision
4 years ago
Romain Vimont ddb9396743 Interrupt and close sockets on server stop
4 years ago
Romain Vimont cabcbc2b15 Do not create control socket if no control
4 years ago
Romain Vimont 80fe12a95f Require libavcodec >= 57.37
4 years ago
Romain Vimont 099c546580 Require libavformat >= 57.33
4 years ago
Romain Vimont dca2c5f94f Require SDL >= 2.0.5
4 years ago
Romain Vimont 90cf956f57 Remove spurious ';'
4 years ago
Romain Vimont 36c8778d2d Add missing comma
4 years ago
Romain Vimont ae90ef22db Add a unit test for clipboard text length
4 years ago
Yu-Chen Lin d80bc25eba Fix overflow in memcpy
4 years ago
Yu-Chen Lin daa06abd34 Fix comment in control message serialization
4 years ago
Romain Vimont 94702a4309 Fix memset() size in tests
4 years ago
Romain Vimont 65fbec9643 Mention SCRCPY_ICON_PATH env var in manpage
4 years ago
Romain Vimont 64a04b8d4a Fix process execution on Windows 7
4 years ago
Romain Vimont 86c91e183d Log CreateProcessW() error code on Windows
4 years ago
Romain Vimont e2b3968c66 Always synchronize clipboard on explicit COPY/CUT
4 years ago
Romain Vimont cbe73b0bc3 Fix set_clipboard message log
4 years ago
Romain Vimont bd56d81f72 Add --raw-key-events
4 years ago
Romain Vimont 5e918ac0c3 Use enum for key injection mode
4 years ago
Romain Vimont 0c0f62e4ab Use static maps to convert input events
4 years ago
Romain Vimont c96505200a Fix code style in keyboard_inject
4 years ago
Romain Vimont 82a053015d Improve HID keyboard documentation
4 years ago
Romain Vimont 19858e6aeb Add --tcpip feature
4 years ago
Romain Vimont 3b310f8317 Extract interruptible sleep for server
4 years ago
Romain Vimont 800ba33ff4 Add function to read an adb property
4 years ago
Romain Vimont 8543d842ea Add function to switch device to TCP/IP mode
4 years ago
Romain Vimont f609b406c9 Add function to find the device IP address
4 years ago
Romain Vimont b7e631791c Add util function to remove trailing '\r'
4 years ago
Romain Vimont b52f87a892 Add util function to locate a column in a string
4 years ago
Romain Vimont 3bf6fd2894 Workaround "adb connect" error detection
4 years ago
Romain Vimont bfce22414f Add adb connect and disconnect
4 years ago
Romain Vimont e6e6f865a0 Add adb flag to disable execution error logs
4 years ago
Romain Vimont e3d4aa8c5d Use flags for adb commands
4 years ago
Romain Vimont f801d8b312 Expose flags for process execution
4 years ago
Romain Vimont b9b8b6aab8 Simplify Windows process inheritance configuration
4 years ago
Romain Vimont 3e54773c48 Remove intermediate static functions from adb.c
4 years ago
Romain Vimont b90c89766b Set CLOEXEC flag on sockets
4 years ago
Romain Vimont 904f0ae61e Check process success locally for adb commands
4 years ago
Romain Vimont 680d2cc940 Extract command argv building
4 years ago
Romain Vimont 8ed3328055 Use unsigned for connection attempts count
4 years ago
Romain Vimont d31725f077 Reorder cli sanity checks
4 years ago
Romain Vimont b0eb1a55d6 Fix adb get-serialno error handling
4 years ago
Romain Vimont 3653fb6b15 Add OutOfMemory log helper
4 years ago