diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2007-05-08 16:40:33 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2007-05-08 16:40:33 +0000 |
commit | 8287b254023916e0fbe278895661aa22b789edba (patch) | |
tree | 2cbc8e080b4cb9c56d92f9f12702933b91393d38 | |
parent | e10fbef05c562d175a12ab4f25ffcd12dfa871dc (diff) |
Add quirk for the PS3 controller
-rw-r--r-- | input/server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/input/server.c b/input/server.c index 2fb4e68f..9596178f 100644 --- a/input/server.c +++ b/input/server.c @@ -117,6 +117,11 @@ static void create_device(struct session_data *session) info("New input device %s (%s)", addr, req.name); + if (req.vendor == 0x054c && req.product == 0x0268) { + unsigned char buf[] = { 0x53, 0xf4, 0x42, 0x03, 0x00, 0x00 }; + err = write(session->ctrl_sk, buf, sizeof(buf)); + } + err = ioctl(ctl, HIDPCONNADD, &req); close(ctl); |