thestr4ng3r / chiaki

Moved to https://git.sr.ht/~thestr4ng3r/chiaki - Free and Open Source PS4 Remote Play Client
https://git.sr.ht/~thestr4ng3r/chiaki
2.17k stars 373 forks source link

Gamepad agnostic start up and quit without KB/M #398

Open Fredrum opened 3 years ago

Fredrum commented 3 years ago

What platform does your feature request apply to? Choose one or more: Probably any non Android platform. Maybe only Linux derivatives.

Is your feature request related to a problem? Please describe. Iv'e had a request to add some more functionality to enable people to start up a session and Quit Chiaki when not using Keyboard+Mouse, and also not necessarily the DS4 controller either (which can emulate a mouse).

Describe the solution you'd like The minimum required I believe would be gamepad support in the Main startup Gui window. And Gamepad agnostic pad input to trigger a full chiaki app quit when in session.
Or maybe quitting should happen in two stages, Session first for opportunity to change 'Server' and then another quit for main window.

Describe alternatives you've considered Right now it's possible to do if you are running from desktop and with a DS4. But it would need to work with any Gamepad and also when using chiaki with 'chiaki -platform eglfs' fullscreen as they'd like to do.

Additional context Iv'e had a first look at how to do this but had some stumbling blocks and I'd also like some input and thoughts how best to do this so that it's more future proof and works with other platforms.

Cheers, Fred

thestr4ng3r commented 3 years ago

Controller support should not be anywhere outside the StreamWindow in the gui since the Qt gui really isn't meant to be used with a controller. Instead, it would make more sense to optimize the borealis version for the Switch to work nicer on Linux/BSD/... too.

domb84 commented 3 years ago

In the short term, an auto-connect feature would be great along with a controller based quit. That would ease support in things like retropie etc. At least a 'quit session/quit application' button combo.

domb84 commented 3 years ago

In the short term, an auto-connect feature would be great along with a controller based quit. That would ease support in things like retropie etc. At least a 'quit session/quit application' button combo.

I've actually discovered the list and stream options now. Looking at the source code it looks like there is a wakeup option that hasn't been fully implemented? Is that the case? I'm just writing a bash script to launch using retropie but I can't wakt up the ps4 without using the Chiaki GUI as yet.

Fredrum commented 3 years ago

Ive just got a day job contract so will have much less time to contribute for a while. Id love to get stuck in and expand the borealis gui to the linux side too but it would take longer.

I can help patching something together for the rpi01 version only that helps on retropie.

Maybe auto login on device [0] ie the first playstation registered.

And hard quit on R3 + Moon/circle

On Dec 13, 2020, at 1:30 PM, domb84 notifications@github.com wrote:

In the short term, an auto-connect feature would be great along with a controller based quit. That would ease support in things like retropie etc. At least a 'quit session/quit application' button combo.

I've actually discovered the list and stream options now. Looking at the source code it looks like there is a wakeup option that hasn't been fully implemented? Is that the case? I'm just writing a bash script to launch using retropie but I can't wakt up the ps4 without using the Chiaki GUI as yet.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

domb84 commented 3 years ago

Ive just got a day job contract so will have much less time to contribute for a while. Id love to get stuck in and expand the borealis gui to the linux side too but it would take longer. I can help patching something together for the rpi01 version only that helps on retropie. Maybe auto login on device [0] ie the first playstation registered. And hard quit on R3 + Moon/circle On Dec 13, 2020, at 1:30 PM, domb84 @.***> wrote: In the short term, an auto-connect feature would be great along with a controller based quit. That would ease support in things like retropie etc. At least a 'quit session/quit application' button combo. I've actually discovered the list and stream options now. Looking at the source code it looks like there is a wakeup option that hasn't been fully implemented? Is that the case? I'm just writing a bash script to launch using retropie but I can't wakt up the ps4 without using the Chiaki GUI as yet. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Turns out there is a CLI so I've built a rather rudimentary bash script that will discover the state of the ps4 and wake it up. Only thing I can't work out yet is how to populate the IP address automatically. Might us nmap or some such.

https://dominicbird.com/knowledge-base-2/emulation/compile-chiaki-and-add-as-a-custom-port-to-retropie/

Fredrum commented 3 years ago

Hi @domb84 I have made an issue on my fork for this retropie temp solution. We could continue talking there. I will post there for this temp fix.

https://github.com/Fredrum/chiaki/issues/4