{"id":15700902,"url":"https://github.com/discretetom/kontroller","last_synced_at":"2025-05-12T15:12:18.174Z","repository":{"id":205449844,"uuid":"698599334","full_name":"DiscreteTom/kontroller","owner":"DiscreteTom","description":"A demo project to read all SteamDeck input (including trackpad and gyro) via SteamInput without using a game engine.","archived":false,"fork":false,"pushed_at":"2024-04-01T12:12:31.000Z","size":22860,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T23:37:42.817Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiscreteTom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-30T11:54:14.000Z","updated_at":"2024-10-09T12:17:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"abbdf935-0928-4329-aa2c-d4e5158e1c05","html_url":"https://github.com/DiscreteTom/kontroller","commit_stats":null,"previous_names":["discretetom/kontroller"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fkontroller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fkontroller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fkontroller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiscreteTom%2Fkontroller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiscreteTom","download_url":"https://codeload.github.com/DiscreteTom/kontroller/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253763932,"owners_count":21960484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T19:56:01.897Z","updated_at":"2025-05-12T15:12:18.157Z","avatar_url":"https://github.com/DiscreteTom.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# kontroller\n\n[![version](https://img.shields.io/github/v/tag/DiscreteTom/kontroller?label=release\u0026style=flat-square)](https://github.com/DiscreteTom/kontroller/releases/latest)\n![license](https://img.shields.io/github/license/DiscreteTom/kontroller?style=flat-square)\n![rust](https://img.shields.io/badge/built_with-rust-DEA584?style=flat-square)\n\nA demo project to read all SteamDeck input (including trackpad and gyro) via SteamInput without using a game engine.\n\n![demo](./img/demo.gif)\n\n## Run\n\n1. Switch to Desktop Mode on SteamDeck.\n2. Download `kontroller` from [release page](https://github.com/DiscreteTom/kontroller/releases/latest), or [build](#build) it yourself. Put it in SteamDeck.\n3. Put `redistributable_bin/libsteam_api.so` in the PATH (e.g. `/usr/lib`).\n4. Copy `kontroller.vdf` into `/home/deck/.local/share/Steam/controller_config` (create the folder if it doesn't exist), rename it to `game_actions_480.vdf`.\n5. Run `kontroller` on SteamDeck. This should open a new window, but your input can't be captured now. Close the window.\n6. Start steam client on the Desktop Mode. In your library, you should find a game called `Spacewar`. [Edit its input mapping](https://partner.steamgames.com/doc/features/steam_controller/getting_started_for_devs#14).\n7. Run `kontroller` again, you should get the input you want.\n\n## Build\n\n\u003e [!NOTE]\n\u003e You'd better build the project on SteamDeck.\n\n```bash\ncargo build --release\n```\n\n## FAQ\n\n- Why not to use a game engine?\n  - This app doesn't need high quality UI update, but need to read input as fast as possible.\n  - Besides, I want the built binary to be as small as possible.\n- What GUI library do you use?\n  - [iced](https://github.com/iced-rs/iced).\n  - Steam Input requires a window to be focused to read input, so a GUI library is required.\n  - WebView-based GUI lib seems not working. Tested with [Tauri](https://tauri.app/) and [web-view](https://github.com/Boscop/web-view)\n  - The GUI process should be the same as the main process.\n- Why the name is `Spacewar` and the app id is 480?\n  - 480 is a commonly used app id for testing for steamworks developers. The name `Spacewar` is the name for the app with app id 480.\n- I tried to start the executable file on SteamDeck but no window shows up.\n  - Make sure you have `libsteam_api.so` in the PATH.\n  - Start the executable in a terminal and show me the output by opening an issue.\n- What if I just want to use joysticks and buttons?\n  - That is much easier. See my another project [stickdeck](https://github.com/DiscreteTom/stickdeck).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscretetom%2Fkontroller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiscretetom%2Fkontroller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiscretetom%2Fkontroller/lists"}