Commit graph

721 commits

Author SHA1 Message Date
Florian Märkl
a1fd418685 Update Ubuntu for AppImage to 24.04 2025-06-25 16:56:44 +02:00
Florian Märkl
bb5a79f234 Update dependencies in BSDs CI 2025-06-22 11:57:41 +02:00
Florian Märkl
4eb90a7a65 Refresh switch to build again 2025-06-09 12:20:27 +02:00
Florian Märkl
94fcdc3c61 Add reference to chiaki-ng 2024-07-31 15:54:39 +02:00
Florian Märkl
8911a44766 Remove Play Store from README.md 2023-08-20 12:53:52 +02:00
Florian Märkl
89368f63c9 Add script for local macOS distribution 2023-08-20 11:42:20 +02:00
Florian Märkl
d4a0603bf2 Fix switch host_addr regex for more arbitrary strings 2023-08-20 11:17:05 +02:00
Florian Märkl
666238ba9f Bump version to 2.2.0 2023-08-20 11:12:11 +02:00
Florian Märkl
bcdd0dd7fd Update CI images 2023-08-20 09:45:15 +02:00
Florian Märkl
6096de8c13 Do not handle server shutdown as error
When the console is powered off or put into sleep mode during streaming,
the remote will disconnect and report the string "Server shutting down".
This is expected by the user and thus should not be shown as an error
message.
2023-02-08 14:08:47 +01:00
Florian Märkl
582ec7aa54 Allow specifying command in switch podman script 2023-02-08 14:08:17 +01:00
Florian Märkl
e14083c87c Update android target SDK to 33 and dependencies 2023-02-05 19:46:34 +01:00
Johannes Baiter
c2f0932670 gui: Support for DualSense haptics and trigger effects
Haptics with PulseAudio does not seem to be working properly, so using
Pipewire as a backend is recommended (and picked by default, if
available via an SDL hint).
2023-02-01 18:05:59 +01:00
Johannes Baiter
7a490b5aae Fix feedback state position 0x1b when DualSense is connected.
The previous value of `0` caused the PS5 to expect a set of 'trigger status'
values in the 0x19 and 0x1a position, which would have required reading
raw values from the DualSense HID device, since these values are not
reported by the SDL DualSense driver (code that does so can be checked
out from the `trigger-feedback` branch on https://git.sr.ht/~jbaiter/chiaki).

Fortunately this is not neccessary, simply setting the value to `1`
seems to make the PS5 to rely on fallback logic (presumably based on the
L2/R2 value) and games that would otherwise have relied on the trigger
status (Astro's Playroom climbing levels) now work without any problems.
2023-01-29 13:39:30 +01:00
Johannes Baiter
4c8209762c Add support for touchpad and sensor handling via SDL
This should enable support for more controllers besides the DS4 and
DualSense, basically any controller supported by SDL that has at least
one touchpad, an accelerometer and a gyroscope.

Older SDL versions have been tested down to 2.0.9. Versions older than
2.0.14 won't have sensors and touchpad support, though.

Setsu is deprecated and remains in-tree for now, but defaults to being
disabled if SDL2 is found and >= 2.0.14. If Setsu is enabled explicitly,
touchpad and sensors are not handled by SDL.
2022-12-14 20:22:40 +01:00
Florian Märkl
76690a319c Fix testing on AppVeyor and make appveyor-win.sh more portable
test/chiaki-unit.exe failed to load some OpenSSL dlls somehow, which
broke the build. Moving them next to the executable fixes that.
The APPVEYOR_BUILD_FOLDER env var is also not needed anymore now.
2022-12-14 19:27:15 +01:00
Street Pea
36816db7ac Add quit (Ctrl+Q) shortcut to GUI 2022-12-10 15:13:22 +01:00
Street Pea
801f902bea Add transform/scaling modes to GUI
Added zoom and stretch modes to GUI to mirror the transform modes
available on Android. They are reachable through a context menu or
shortcuts (Ctrl+S/Ctrl+Z).
CLI options --stretch and --zoom have been added as well.

Co-authored-by: Florian Märkl <info@florianmaerkl.de>
2022-12-10 15:13:03 +01:00
Johannes Baiter
74d39e6314 lib: Add support for trigger effects and controller haptics
By default, no trigger effects and haptics are requested from the
console, lib users have to explicitly enable them for a session by
setting the new `enable_dualsense` flag on the session's
`ChiakiConnectInfo` struct.

Trigger Effects are simply a new Takion message type `11`  and
include the type of each effect and the effect data (10 bytes) for
each of the triggers. They are exposed as a new Chiaki event type
`CHIAKI_EVENT_TRIGGER_EFFECTS`.

Haptic effects are implemented in the protocol as a separate audio
stream, for which packets are only sent when there are actually
effects being played, i.e. silence is not explicitly encoded.
Audio data is 3kHz little endian 16 bit stereo sent in frames of
10 samples every 100ms. Note that the Takion AV header has the
codec field set to Opus, however this is not true.
Users can provide a new `ChiakiAudioSink` dedicated to haptics
via the new `chiaki_session_set_haptics_sink` API, which behaves
identical to the regular audio sink, except that it has a lower
frequency.
2022-11-01 18:29:05 +01:00
Florian Märkl
40a9dee4ed Fix some EINTR handling 2022-10-23 13:42:12 +02:00
Florian Märkl
6bfbcfc456 Update chiaki-build-switch image in build script 2022-09-25 14:24:43 +02:00
Florian Märkl
e00f5fae9d Update macOS icon in Big Sur style 2022-09-25 10:29:17 +02:00
Florian Märkl
4164255ef9 Update dependencies and fix CI
* nanopb 0.4.6.4 with PB_C99_STATIC_ASSERT to avoid depending on C11
* OpenSSL 1.1.1q on windows
* Switched from docker to podman in CI
* Appdir in appimage build container is now in /build/appdir to fix
  "Invalid cross-device link" errors in linuxdeploy when appdir is in
  mount
* Use python protobuf==3.19.5 in bionic image, which still supports
  python 3.6, and on windows where nanopb otherwise has issues
* Purge nanopb_pb2.py to force regeneration of it for possibly different
  python protobuf versions in subsequent builds
* FreeBSD needs py39 packages now
2022-09-24 15:18:53 +02:00
Florian Märkl
b790fb3fb5 Set PATH to find protoc for nanopb generator 2022-06-02 18:26:42 +02:00
Florian Märkl
b4f051395f Reduce targets in fetched mbedtls and show progress 2022-06-02 17:58:57 +02:00
Florian Märkl
420809b24e Add option to fetch mbedtls with cmake 2022-06-02 17:10:19 +02:00
Florian Märkl
7d820bd4ab Update and fix CI
* appimage: switched to bionic
* android: updated container for nanopb changes
* switch: updated devkitpro and simpler cmake scripts
2022-03-26 18:33:15 +01:00
Florian Märkl
aa3a3b8bbc Update Windows Dependencies in CI 2022-03-26 11:33:50 +01:00
MiniMeOSc
ccecc67d74 Fix stream command not working for second or later host in configuration 2022-03-22 11:38:47 +01:00
Florian Märkl
dcd2e6af4a Update nanopb to fix unaligned pointers on arm64 2021-12-03 11:47:32 +01:00
Florian Märkl
7a01ac0d41 Update BSD CI 2021-12-03 11:46:47 +01:00
Florian Märkl
796a128456 Fix fec.c extension 2021-04-11 18:19:46 +02:00
Florian Märkl
695da18473 Make CLI Wakeup work for PS5 2021-04-11 18:11:35 +02:00
Florian Märkl
7870a28cdd Fix Discovery in CLI 2021-04-11 18:11:35 +02:00
Florian Märkl
a44000ea2b Enable CLI in CI 2021-04-11 18:11:35 +02:00
Florian Märkl
2b4a7426ff Install CLI 2021-04-11 18:11:35 +02:00
Florian Märkl
f50b060795 Fix AppVeyor 2021-04-11 18:11:35 +02:00
Florian Märkl
a049ed43ec
Force-disable Lib Decoders on Android 2021-02-02 10:59:26 +01:00
Florian Märkl
ae3ca1ac7a
Update Flatpak to v2.1.1 2021-01-24 14:02:17 +01:00
Florian Märkl
2257030ade
Version 2.1.1 2021-01-24 10:26:53 +01:00
Florian Märkl
6df937a57c
Remove removed sdl2-static from Alpine 2021-01-24 10:17:49 +01:00
Florian Märkl
078e83ec70
Fix Regist on Switch 2021-01-24 10:11:46 +01:00
Florian Märkl
ac8a3a3a3c
Update Flatpak to v2.1.0 2021-01-15 22:49:56 +01:00
Florian Märkl
fcdc414692
Version 2.1.0 2021-01-15 22:35:50 +01:00
Florian Märkl
505910bc5f
Enable Setsu in AppImage 2021-01-15 22:01:35 +01:00
Florian Märkl
f8b34febbe
Fix FindFFMPEG.cmake for ancient cmake 2021-01-15 22:01:35 +01:00
Florian Märkl
35130b08b7
Refine LR Touch on Android 2021-01-15 19:16:54 +01:00
Florian Märkl
5699c06dd8
Fix RegistActivity on Android 2021-01-15 18:50:49 +01:00
Florian Märkl
cb5870f30d
Add Touch Button Haptics to Android 2021-01-15 18:43:09 +01:00
Florian Märkl
28f017d640
Add Option to disable Motion on Android 2021-01-15 18:23:20 +01:00