Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
vm_tools: fix dead links in gaming documentation
Browse files Browse the repository at this point in the history
Fixing a few broken links in the documentation.

BUG=b:315406710
TEST=Click links

Change-Id: I2be6d1dcc622ebfcac3af2a6abdb3f9c44406b0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/5148599
Commit-Queue: Yiwei Zhang <[email protected]>
Tested-by: Daniel Ng <[email protected]>
Reviewed-by: Yiwei Zhang <[email protected]>
Auto-Submit: Daniel Ng <[email protected]>
  • Loading branch information
BipBopBoop authored and Chromeos LUCI committed Dec 28, 2023
1 parent 7c39cc5 commit 2d59e0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gaming.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Gamepad support in Sommelier

When `GAMEPAD_SUPPORT` is enabled, [Sommelier](https://crsrc.org/o/src/platform2/vm_tools/sommelier/testing/sommelier-gaming.cc)
When `GAMEPAD_SUPPORT` is enabled, [Sommelier](https://crsrc.org/o/src/platform2/vm_tools/sommelier/sommelier-gaming.cc)
will create a gaming seat to listen for gamepads being attached and their associated events.

Once a gamepad is added, we use `evdev` and `uinput` to emulate an Xbox One S gamepad in the VM. We subsequently forward
Expand All @@ -16,7 +16,7 @@ with each input on your gamepad.
2. Run `evtest` and select your device
3. Copy the ID values from the “Input device ID” section
4. Press/use each input on your device and note what input event code values evtest observes
3. Add your mapping to [sommelier-gaming](https://crsrc.org/o/src/platform2/vm_tools/sommelier/testing/sommelier-gaming.cc)
3. Add your mapping to [sommelier-gaming](https://crsrc.org/o/src/platform2/vm_tools/sommelier/sommelier-gaming.cc)
1. Create a `DeviceID` struct with the details of your gamepad
2. Create (or reuse) a mapping for your gamepad
3. Add the `DeviceID`/mapping pair to `kDeviceMappings`
Expand Down

0 comments on commit 2d59e0f

Please sign in to comment.