From owner-freebsd-usb@FreeBSD.ORG Wed Jan 29 05:13:57 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A22AB388; Wed, 29 Jan 2014 05:13:57 +0000 (UTC) Received: from mail-qa0-x232.google.com (mail-qa0-x232.google.com [IPv6:2607:f8b0:400d:c00::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4FD841FDB; Wed, 29 Jan 2014 05:13:57 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id cm18so1844833qab.9 for ; Tue, 28 Jan 2014 21:13:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=nQhGPLhvmcJ7pF/zO7nJ/CF+NpZa5Tf9qiATsYIK2U8=; b=tmueLmBI6WVdmJ8CsOkKYhurvhW3D+1PDuP9wCXRmfMCVx63TMV8GEjFP6chApRkCC p64v5qDlmcPoECy123Ob4HBwj/OXC3YDvCiFI1idJmddRfSZFTGV8hsmFMUke2e+vnIn n+FAUM346aqHWW7cHlxps/n+orUcHMrGWnZtuBUK4FioIwUoy/BE8YhbZfu4gIGZCQ+g 7kYByEqgl164fWH5fl3iK3jGb+bvKoOZQCLUbQkbP4zte5AMDyOW1OPGuWiswuCh7Clt 2/4NUqxMnG7WmLCuLLjzjUV5m2CkSZ8Py+P6+Ppb+8SBQo0jpRrqb3mbJ4UmJMy2sBLg sH0w== MIME-Version: 1.0 X-Received: by 10.140.24.71 with SMTP id 65mr8404163qgq.12.1390972436520; Tue, 28 Jan 2014 21:13:56 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.224.52.8 with HTTP; Tue, 28 Jan 2014 21:13:56 -0800 (PST) In-Reply-To: References: Date: Tue, 28 Jan 2014 21:13:56 -0800 X-Google-Sender-Auth: eTAa1biPD_xgJpw1V_aYXNpHfZM Message-ID: Subject: Re: Apple Trackpad driver From: Adrian Chadd To: =?UTF-8?B?6buE5paH6L6J?= , "freebsd-usb@freebsd.org" , Hans Petter Selasky Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jan 2014 05:13:57 -0000 holy crap, cool! Hans? Any chance we could get this into -HEAD? -a On 28 January 2014 17:43, Huang Wen Hui wrote: > Hi, > I have a working trackpad driver for my MBP 2013, I am not C programmer > usually, > so the code may ugly. If someone like to test, you can download it from > http://sw.gddsn.org.cn/freebsd/wsp-140129.tar.gz, > I only test it on MBP2012 and MBP2013. Right now the driver have these > feature: > > 1. Vertical scrolling with 2 fingers movement, > 2. In firefox, 2 fingers horizontal movement act as page back/forward. > 3. one finger tap act as left mouse click, 2 fingers tap act as right mouse > click, and > three fingers tap act as middle mouse click. > 4. you also use sysctl to modify some parameters: > hw.usb.wsp.scale_factor: 12 > hw.usb.wsp.z_factor: 5 > hw.usb.wsp.pressure_touch_threshold: 50 > hw.usb.wsp.pressure_untouch_threshold: 10 > hw.usb.wsp.pressure_tap_threshold: 120 > hw.usb.wsp.scr_hor_threshold: 50 > > Cheers, > > Huang Wen Hui > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"