summaryrefslogtreecommitdiff
path: root/nuttx/graphics/Kconfig
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-16 16:31:31 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-16 16:31:31 -0600
commit72754295cabf0096cbc6f2ec693f1e5e362d8c56 (patch)
treed541af4e4c2a1ba416aa775623d658d926b282b8 /nuttx/graphics/Kconfig
parent80ea5737ca7bbdb33ba3ccf37a7c919338876222 (diff)
downloadpx4-nuttx-72754295cabf0096cbc6f2ec693f1e5e362d8c56.tar.gz
px4-nuttx-72754295cabf0096cbc6f2ec693f1e5e362d8c56.tar.bz2
px4-nuttx-72754295cabf0096cbc6f2ec693f1e5e362d8c56.zip
Rename CONFIG_NX_MOUSE to CONFIG_NX_INPUT, then add CONFIG_NX_XYINPUT_MOUSE and CONFIG_XYINPUT_TOUCHSCREEN
Diffstat (limited to 'nuttx/graphics/Kconfig')
-rw-r--r--nuttx/graphics/Kconfig37
1 files changed, 34 insertions, 3 deletions
diff --git a/nuttx/graphics/Kconfig b/nuttx/graphics/Kconfig
index 85e2164a8..187089b54 100644
--- a/nuttx/graphics/Kconfig
+++ b/nuttx/graphics/Kconfig
@@ -118,11 +118,42 @@ config NX_PACKEDMSFIRST
menu "Input Devices"
-config NX_MOUSE
- bool "Mouse/Touchscreen Support"
+config NX_XYINPUT
+ bool
default n
+
+choice
+ prompt "Mouse/Touchscreen Support"
+ default NX_XYINPUT_NONE
+
+config NX_XYINPUT_NONE
+ bool "No X/Y input device"
+ ---help---
+ There is no X/Y positional input device connected
+
+config NX_XYINPUT_MOUSE
+ bool "Mouse device support"
+ select NX_XYINPUT
---help---
- Build in support for mouse or touchscreeninput.
+ X/Y positional input is provided by a mouse. The only difference
+ between the mouse and touchscreen selection is in the presence or
+ absence of the mouse buttons. This difference is not used within
+ NuttX itself, however, graphics applications may need this
+ information, for example, to handle the different ways that graphic
+ elements are selected and dragged.
+
+config NX_XYINPUT_TOUCHSCREEN
+ bool "Touchscreen device support"
+ select NX_XYINPUT
+ ---help---
+ X/Y positional input is provided by a touchscreen. The only difference
+ between the mouse and touchscreen selection is in the presence or
+ absence of the mouse buttons. This difference is not used within
+ NuttX itself, however, graphics applications may need this
+ information, for example, to handle the different ways that graphic
+ elements are selected and dragged.
+
+endchoice # Mouse/Touchscreen Support
config NX_KBD
bool "Keyboard Support"