summaryrefslogtreecommitdiffstats
path: root/btif/include
diff options
context:
space:
mode:
authorSyed Ibrahim M <syedibra@broadcom.com>2012-08-24 16:21:43 +0530
committerMatthew Xie <mattx@google.com>2012-08-29 12:22:01 -0700
commit9c4e2421f490a3a8453e6a779258aa377b7d6600 (patch)
tree7f35cb672618a2b8eec61572555d6112c09f0fe9 /btif/include
parent66c09fca910e0bb4066fbf6268592f78dfaec3c5 (diff)
downloadexternal_bluetooth_bluedroid-9c4e2421f490a3a8453e6a779258aa377b7d6600.zip
external_bluetooth_bluedroid-9c4e2421f490a3a8453e6a779258aa377b7d6600.tar.gz
external_bluetooth_bluedroid-9c4e2421f490a3a8453e6a779258aa377b7d6600.tar.bz2
Turn on NUMLOCK states for HID KBs without NUMLOCK
Set NUMLOCK state for HID keyboards without NUMLOCK key to be ON so that the numeric keypad can be used. Change-Id: Ib9811d55cc62ba380c0418f0ac9ff3827b9a3c8a
Diffstat (limited to 'btif/include')
-rw-r--r--btif/include/btif_hh.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/btif/include/btif_hh.h b/btif/include/btif_hh.h
index 2849d63..ad438f9 100644
--- a/btif/include/btif_hh.h
+++ b/btif/include/btif_hh.h
@@ -66,6 +66,11 @@
#define BTIF_HH_MAX_HID 8
#define BTIF_HH_MAX_ADDED_DEV 32
+#define BTIF_HH_MAX_KEYSTATES 3
+#define BTIF_HH_KEYSTATE_MASK_NUMLOCK 0x01
+#define BTIF_HH_KEYSTATE_MASK_CAPSLOCK 0x02
+#define BTIF_HH_KEYSTATE_MASK_SCROLLLOCK 0x04
+
typedef struct
{
bthh_connection_state_t dev_status;