From f6232ddeb071f8052cb4db9d84fc709648bc2d9f Mon Sep 17 00:00:00 2001 From: "garykac@chromium.org" Date: Tue, 28 Feb 2012 01:49:12 +0000 Subject: Add usb_key_code to Chromotocol key events. BUG=none TEST=none Review URL: http://codereview.chromium.org/9446001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123856 0039d316-1c4b-4281-b951-d872f2087c98 --- remoting/proto/event.proto | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'remoting/proto') diff --git a/remoting/proto/event.proto b/remoting/proto/event.proto index a5c0343..2a83a99 100644 --- a/remoting/proto/event.proto +++ b/remoting/proto/event.proto @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -12,9 +12,14 @@ package remoting.protocol; // Defines a keyboard event. message KeyEvent { - // The POSIX key code. + // The Windows Virtual Key code. required int32 keycode = 1; required bool pressed = 2; + + // The USB key code. + // The upper 16-bits are the USB Page (0x07 for key events). + // The lower 16-bits are the USB Usage ID (which identifies the actual key). + optional uint32 usb_key_code = 3; } // Defines a mouse event message on the event channel. -- cgit v1.1