From a4721a34ead1a37ffa934d4e4545245f25986c4f Mon Sep 17 00:00:00 2001 From: Jarrad Whitaker Date: Fri, 27 Nov 2015 23:06:01 +1100 Subject: [PATCH] add button information to documentation --- doc/protocol.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/protocol.txt b/doc/protocol.txt index 4ef9aa6..c051fb3 100644 --- a/doc/protocol.txt +++ b/doc/protocol.txt @@ -20,7 +20,11 @@ Packet structure, uses network byte order (big endian): 1 unsigned int16 pressure (accepting full range 0..65535, but will clip to 32768 == pressure 1.0f on Android device) when type == button event: - 1 signed int8 number of button, starting with 0 + 1 signed int8 button id: + -1: stylus in range pseudo-button + 0: left click / stylus in contact / button 0 + 1: extra button 1 + 2: extra button 2 1 byte button status: 0 button is released ("up") 1 button is pressed ("down")