aboutsummaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-26 21:37:50 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-12-26 21:37:50 +0000
commit88bccb641eccf8ca1a91ab0583976a211deb1ed5 (patch)
tree65f8b3f30035b51fd347b856ca80d55eead7d277 /nuttx/include
parent8ed19bb07d00a15e2f2c9893d57b1ef1261b2d23 (diff)
downloadpx4-firmware-88bccb641eccf8ca1a91ab0583976a211deb1ed5.tar.gz
px4-firmware-88bccb641eccf8ca1a91ab0583976a211deb1ed5.tar.bz2
px4-firmware-88bccb641eccf8ca1a91ab0583976a211deb1ed5.zip
Verified USB HID KBD driver encoding of special characters; apps/examples/hidkbd now decodes encoded keyboar characters.
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5463 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/input/kbd_codec.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/input/kbd_codec.h b/nuttx/include/nuttx/input/kbd_codec.h
index d374ed8d3..0a3a54d2d 100644
--- a/nuttx/include/nuttx/input/kbd_codec.h
+++ b/nuttx/include/nuttx/input/kbd_codec.h
@@ -44,6 +44,8 @@
#include <nuttx/config.h>
#include <nuttx/streams.h>
+#ifdef CONFIG_LIB_KBDCODEC
+
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@@ -87,7 +89,7 @@ enum kbd_keycode_e
KEYCODE_CUT, /* Cut */
KEYCODE_COPY, /* Copy */
KEYCODE_PASTE, /* Paste */
- KEYCODE_FIND , /* Find */
+ KEYCODE_FIND, /* Find */
/* Selection codes */
@@ -294,5 +296,6 @@ int kbd_get(FAR struct lib_instream_s *stream,
}
#endif
+#endif /* CONFIG_LIB_KBDCODEC */
#endif /* __INCLUDE_NUTTX_INPUT_KBD_CODEC_H */