From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.65; helo=mga03.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id F0A7D2232BE18 for ; Mon, 22 Jan 2018 00:05:01 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Jan 2018 00:10:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,395,1511856000"; d="scan'208";a="12170495" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.19]) by fmsmga008.fm.intel.com with ESMTP; 22 Jan 2018 00:10:26 -0800 From: Ruiyu Ni To: edk2-devel@lists.01.org Date: Mon, 22 Jan 2018 16:10:18 +0800 Message-Id: <20180122081024.283496-1-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.15.1.windows.2 Subject: [PATCH 0/6] ReadKeyStrokeEx always return key state X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2018 08:05:02 -0000 Today's implementation only return key state when there is key. But when user doesn't press any key, the key state cannot be returned. The patch changes the ReadKeyStrokeEx() to always return the key state even there is no key pressed. Ruiyu Ni (6): MdePkg/SimpleTextInEx.h: Fix comments alignment MdeModulePkg/ConSplitter: ReadKeyStrokeEx always return key state MdeModulePkg/UsbKb: ReadKeyStrokeEx always return key state MdeModulePkg/Ps2Kb: ReadKeyStrokeEx always return key state IntelFrameworkModule/Ps2Kb: ReadKeyStrokeEx always return key state IntelFrameworkModule/ThunkKb: ReadKeyStrokeEx always return key state .../Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c | 58 +++++--- .../Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c | 6 +- .../Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h | 14 +- .../Csm/BiosThunk/KeyboardDxe/BiosKeyboard.c | 14 +- .../Csm/BiosThunk/KeyboardDxe/BiosKeyboard.h | 5 +- .../Bus/Isa/Ps2KeyboardDxe/Ps2KbdCtrller.c | 58 +++++--- MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2KbdTextIn.c | 6 +- MdeModulePkg/Bus/Isa/Ps2KeyboardDxe/Ps2Keyboard.h | 14 +- MdeModulePkg/Bus/Usb/UsbKbDxe/EfiKey.c | 4 +- MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.c | 107 ++++++++------ MdeModulePkg/Bus/Usb/UsbKbDxe/KeyBoard.h | 14 +- .../Universal/Console/ConSplitterDxe/ConSplitter.c | 164 ++++++++++++++++++--- .../Universal/Console/ConSplitterDxe/ConSplitter.h | 4 +- MdePkg/Include/Protocol/SimpleTextInEx.h | 13 +- 14 files changed, 348 insertions(+), 133 deletions(-) -- 2.15.1.windows.2