Skip to content

Commit

Permalink
initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucaber committed May 20, 2023
0 parents commit 93c959c
Show file tree
Hide file tree
Showing 45 changed files with 5,528 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea
testing
build
deckjoy
deckjoy.zip
47 changes: 47 additions & 0 deletions Makefile
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
33 changes: 33 additions & 0 deletions README.md
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
Loading

0 comments on commit 93c959c

Please sign in to comment.