Received: by 10.213.65.68 with SMTP id h4csp41500imn; Mon, 19 Mar 2018 18:55:05 -0700 (PDT) X-Google-Smtp-Source: AG47ELtd80SRfALjmmcTCfMEtIs8hhuFHI7QYbnqf0qoMzR6pnOnD9ELKX7WR/L/p5ft8k69qzbT X-Received: by 10.99.120.196 with SMTP id t187mr10871093pgc.149.1521510905508; Mon, 19 Mar 2018 18:55:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521510905; cv=none; d=google.com; s=arc-20160816; b=lv+T6g0A5YbAzFmPEuLpJgZ59uBzQLDqS0WYP0ymhHfVH5R+zWqRbJBlkCLLz4BQ/7 zYD1AuFBqAd6F0pCP5D/rAJ47qj/XDaZS+yu57Zp5FGC/rXqsPlenKD7+/YBCuqehOH3 H9TUJ5nTqIRiIxJnk8uIivWPt8kR4MOX+xMoqBP3TNkn0jt8uNx2hExuHFVws27mfDUO xu4LMYP2MC35zOzGwbYEAx8ysZ+VIxnocR/PZ2jSO042YFwjc21nQDGgoR74qVunZeTa nEyLPyoEvFjm0Q0zgB5NxsevCWH2CFqtfViXYuNAOtNRKxGQARGMiHbj0Ur/iCyQyRDQ Yl9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=C134tOjyiphxy9pKE/a/oQ0hQafT5IuFFVwFYhQGjs8=; b=xsqxmmMQ8hIYtm63QCkQuChwBBU65iUGln/8a5kCr9e/tWn6P063YfgZVcUL8PE8Os UKAjPRlr+QPQqjUzqtfE+4LqLLPwBs1Kb5eeuL9Tdk3RfuUSxuvLucfOf33Ba5LOquhc YNR+J+R98dkDfsfIFlOuU4cAI2ic3X3C2Orc1s8JpIhCdFMPx5VD5t4bOFphjM3MoISf kh3cO2AwmPLU8RuyZVAQtFyp7UTQW0AMW4ot4MG3QkefJRfzt2MFuNqCTTVd2bcHMu0Z LM4BhPoycVs/XOGP2D7CvDtWu64wrhd3wP9etiUBibgZBhl34TVMPKkNvToIaMvAdKP2 /zNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hcPVtvGL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m11-v6si502563pls.520.2018.03.19.18.54.51; Mon, 19 Mar 2018 18:55:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=hcPVtvGL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935776AbeCSVHW (ORCPT + 99 others); Mon, 19 Mar 2018 17:07:22 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:40589 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934946AbeCSVGK (ORCPT ); Mon, 19 Mar 2018 17:06:10 -0400 Received: by mail-io0-f170.google.com with SMTP id e79so14248482ioi.7; Mon, 19 Mar 2018 14:06:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=C134tOjyiphxy9pKE/a/oQ0hQafT5IuFFVwFYhQGjs8=; b=hcPVtvGLe288Q/o9fA5wF7sx3iVmn1BQAt20FiugsMtOT2CZ3ql+hmdMlDSkyyGkF6 j2ngFxrS2xmN/9Ad1cHXOEC5g3eY+P7Vwke3FWlw7Ti1fYuIuzTSjJCOtgliCAHR1B7y WgHKo6GG6QQoo9fx7knaWAiHR4PBVk1TziNAxAqZlYfjO+DSLt1qZOAI8c7aYjgJn2Tn 1ZLBPc6+00oyfJkE/ehjxD5mW6GOSv/pBmPi8nc+XJJ16pvN+LX50iad+9DorWgrLFjq QW12efoULCZFcWmMNfwkLyLtEsz12Q3PVKj6u3hpYb96mHwRUjl2khc1V4QO0MyoDEgu YHZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=C134tOjyiphxy9pKE/a/oQ0hQafT5IuFFVwFYhQGjs8=; b=LEz8dKB3eDN/ixrAhJ6yo3qd4zlfHBj5OQksqxchCY2xgV1tqTUg8qVseubW9OYhcX gyAfuRVH5OSibcdo7zjtod+bagX3tBrS6dQ2zvq3bMs7hKYEbdgIMgbM8k4WvPGI8uIQ /LuWe57x+ewhqeTkb4gcq8h1AiFHhnZt5ElhznsOXNA6wscFHZelpkJtFyV21vDAUbo8 M4l41grn85wuOcwHmodpEnwX+F/2NtL/nfJxOFXS2b8qFPnCZMtjzXZqCTXtCBiFFNuZ 0E4q/fwKMJngbYt1Icsw5rbhB2EljKf+4zrswqGZny4AltH+DjflWzCmDENL5fHH1B3J 8dFA== X-Gm-Message-State: AElRT7E+JKkrxy7coNjb2umJ9/Egs0zN+TCjlsXK0jmjH2MCz20gDRJs QmPJNjkSMkCaKOaPIsUCeSrGQWKkVtc9a8nh58b/wg== X-Received: by 10.107.111.25 with SMTP id k25mr3257104ioc.257.1521493570106; Mon, 19 Mar 2018 14:06:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.198.71 with HTTP; Mon, 19 Mar 2018 14:06:09 -0700 (PDT) In-Reply-To: <20180319200813.GA18746@casa> References: <20180311195842.5551-1-rodrigorivascosta@gmail.com> <20180312205158.GB21621@casa> <20180315210659.GA16037@casa> <1c75c511-eada-585e-297f-e90feb17ac8c@valvesoftware.com> <20180319200813.GA18746@casa> From: =?UTF-8?Q?Cl=C3=A9ment_VUCHENER?= Date: Mon, 19 Mar 2018 22:06:09 +0100 Message-ID: Subject: Re: [PATCH v5 0/4] new driver for Valve Steam Controller To: Rodrigo Rivas Costa Cc: "Pierre-Loup A. Griffais" , Benjamin Tissoires , Jiri Kosina , Cameron Gutman , lkml , linux-input Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-19 21:08 GMT+01:00 Rodrigo Rivas Costa : > On Sat, Mar 17, 2018 at 02:54:07PM -0700, Pierre-Loup A. Griffais wrote: > > Now, what I would really want is a review by Valve of my set-lizard function: > > static void steam_set_lizard_mode(struct steam_device *steam, bool enabled) > { > if (enabled) { > steam_send_report_byte(steam, 0x8e); //enable mouse > steam_send_report_byte(steam, 0x85); //enable esc, enter and cursor keys > } else { > steam_send_report_byte(steam, 0x81); //disable esc, enter and cursor keys > steam_write_register(steam, 0x08, 0x07); //disable mouse (cmd: 0x87) > } > } > > While it works, I find its asymmetry quite uncanny. I'm afraid that some > of these are there for a side effect, this is not their real purpose. > Could you give me a hint about this? > If I remember correctly, you can also enable the mouse with "87 03 08 00 00". But that do not explain the asymmetry or why there are two ways of doing it. I always found it weird that the "enable" value was 0x0000 and the "disable" value 0x0007.