-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 93c959c
Showing
45 changed files
with
5,528 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.idea | ||
testing | ||
build | ||
deckjoy | ||
deckjoy.zip |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
REMOTE_TARGET := [email protected] | ||
REMOTE_TARGET_ROOT := [email protected] | ||
|
||
.PHONY: all | ||
all: zip upload cleanup-remote run-remote-steam | ||
|
||
.PHONY: daemon | ||
daemon: build upload cleanup-remote daemon-remote | ||
|
||
.PHONY: build | ||
build: | ||
go build -ldflags "-X 'github.com/lucaber/deckjoy/pkg/config.Version=0.0.1'" -o deckjoy main.go | ||
|
||
.PHONY: zip | ||
zip: build | ||
-rm deckjoy.zip | ||
mkdir -p build | ||
cp deckjoy build | ||
cp assets/* build | ||
cp README.md build | ||
cd build && zip ../deckjoy.zip * | ||
rm -r build | ||
|
||
.PHONY: upload | ||
upload: | ||
rsync deckjoy.zip $(REMOTE_TARGET):deckjoy.zip | ||
ssh $(REMOTE_TARGET) unzip -u -o deckjoy.zip -d deckjoy | ||
rsync deckjoy $(REMOTE_TARGET_ROOT):deckjoy | ||
|
||
.PHONY: run-remote-steam | ||
run-remote-steam: | ||
ssh $(REMOTE_TARGET) steam steam://rungameid/15557043747182084096 | ||
|
||
.PHONY: run-remote | ||
run-remote: | ||
ssh $(REMOTE_TARGET) ./deckjoy gui | ||
|
||
.PHONY: daemon-remote | ||
daemon-remote: | ||
ssh $(REMOTE_TARGET_ROOT) ./deckjoy daemon | ||
|
||
.PHONY: cleanup-remote | ||
cleanup-remote: | ||
-ssh $(REMOTE_TARGET_ROOT) killall deckjoy | ||
sleep 1 | ||
-ssh $(REMOTE_TARGET_ROOT) ./deckjoy cleanup |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# DeckJoy | ||
Connect your Steam Deck as USB GameController/Keyboard/Mouse to your PC. No additional software or drivers required. | ||
|
||
## Installation | ||
### Requirements | ||
- Password of the `deck` linux user | ||
- Set a password can be set with the `passwd` command in a terminal | ||
- Steam Deck in USB DRD Mode | ||
- Shutdown your Steam Deck | ||
- Hold `Volume UP` and press the `Power` button | ||
- Navigate to `Setup Utilities` using the D-Pad and confirm with A | ||
- Navigate to `Advanced` -> `USB Configuration` -> `USB Dual Role Device` using the D-Pad | ||
- Change the setting to `DRD` | ||
- Navigate to `Exit` -> `Exit Saving Changes` -> `Yes` | ||
|
||
### Installation | ||
- Switch to Desktop Mode | ||
- Download and unpack the latest deckjoy.zip | ||
- Add deckjoy as a Non-Steam Game | ||
- Switch back to Gaming Mode | ||
- Start deckjoy | ||
|
||
### Steam Input | ||
|
||
If Steam Input is not configured automatically I recommend to configure: | ||
|
||
- Trackpads | ||
- Right Trackpad Behaviour: As Mouse | ||
- Click: Left Mouse Click | ||
- Action Sets | ||
- Default | ||
- Add Always-On Command | ||
- Command: System -> Touchscreen Native Support |
Oops, something went wrong.