From patchwork Tue Dec 12 14:24:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= X-Patchwork-Id: 847523 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yx2Dh50l4z9ryk for ; Wed, 13 Dec 2017 01:25:56 +1100 (AEDT) Received: from localhost ([::1]:58647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOlVK-0000Oo-Ly for incoming@patchwork.ozlabs.org; Tue, 12 Dec 2017 09:25:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47179) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eOlUg-0000KK-E0 for qemu-devel@nongnu.org; Tue, 12 Dec 2017 09:25:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eOlUe-0003AN-Es for qemu-devel@nongnu.org; Tue, 12 Dec 2017 09:25:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:53974) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eOlUe-00039U-8F for qemu-devel@nongnu.org; Tue, 12 Dec 2017 09:25:12 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6532F61473; Tue, 12 Dec 2017 14:25:11 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.42.22.189]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3DB6868B2B; Tue, 12 Dec 2017 14:25:03 +0000 (UTC) From: "Daniel P. Berrange" To: qemu-devel@nongnu.org Date: Tue, 12 Dec 2017 14:24:58 +0000 Message-Id: <20171212142500.3909-1-berrange@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 12 Dec 2017 14:25:11 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH v6 0/2] Convert apple related code to keycodemapdb X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Peter Maydell \]" , Gerd Hoffmann , Programmingkid Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" This is a followup to v1: https://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg02047.html v2: https://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg02471.html v3: https://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg02517.html v4: https://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg02708.html v5: https://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg02950.html This series contains only the apple related patches, the cocoa frontend and adb backend device. I decided to separate them, as I'm fairly sure the keycodemapdb data for these has some problems in it. There is contradictory information on the right mappings to use for certain keys. Looking at darwin source code in fact I think that the low level hardware scancode -> keycode mappings on OS-X might even change based on user config options at the OS level, and I'm not sure how to deal with that yet. So I need todo more investigation before I consider these two patches ready for merge. They're just posted to allow any feedback to be gathered Daniel P. Berrange (2): hw: convert the adb device to keycodemapdb ui: convert cocoa frontend to keycodemapdb Makefile | 2 + hw/input/adb.c | 124 +------------------------------------- include/hw/input/adb-keys.h | 141 -------------------------------------------- include/ui/input.h | 5 ++ ui/cocoa.m | 129 +--------------------------------------- ui/input-keymap.c | 2 + 6 files changed, 13 insertions(+), 390 deletions(-) delete mode 100644 include/hw/input/adb-keys.h