From ba0055e0bd4159ce533ab790d7c7bd10e14a5b6a Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 26 Jan 2016 04:11:51 +0100 Subject: profiles/workstation: Add my PlayStation 2 gamepad This one is a PlayStation 2 gamepad connected via USB using some GreenAsia adapter. Signed-off-by: aszlig --- .../user/aszlig/profiles/workstation/default.nix | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'modules') diff --git a/modules/user/aszlig/profiles/workstation/default.nix b/modules/user/aszlig/profiles/workstation/default.nix index 38adc853..2e0d8a40 100644 --- a/modules/user/aszlig/profiles/workstation/default.nix +++ b/modules/user/aszlig/profiles/workstation/default.nix @@ -76,6 +76,32 @@ in { + " git merge -m \"${message}\" --log FETCH_HEAD"; }; + vuizvui.hardware.gameController."03000000ff1100004133000010010000" = { + name = "PS2 Controller"; + mapping = { + a = "b2"; + b = "b1"; + x = "b3"; + y = "b0"; + back = "b8"; + start = "b9"; + leftshoulder = "b6"; + rightshoulder = "b7"; + leftstick = "b10"; + rightstick = "b11"; + leftx = "a0"; + lefty = "a1"; + rightx = "a3"; + righty = "a2"; + lefttrigger = "b4"; + righttrigger = "b5"; + dpup = "h0.1"; + dpleft = "h0.8"; + dpdown = "h0.4"; + dpright = "h0.2"; + }; + }; + services = { openssh = { enable = true; -- cgit 1.4.1