diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-20 18:56:14 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-05-20 18:56:14 +0000 |
commit | 01bce341a9d065e8250f655c246c07a525779bc0 (patch) | |
tree | 8420c219c8f334bb6ec77acb5e51a3872bb2461e /NxWidgets/libnxwidgets/include/cnxtoolbar.hxx | |
parent | c5ff7843f26438947da8fa0b0fc9b255aeb1d638 (diff) | |
download | nuttx-01bce341a9d065e8250f655c246c07a525779bc0.tar.gz nuttx-01bce341a9d065e8250f655c246c07a525779bc0.tar.bz2 nuttx-01bce341a9d065e8250f655c246c07a525779bc0.zip |
NxWM::CNxConsole and NXWidgets::CCallback can now redirect keyboard input to the NxConsole driver
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4754 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'NxWidgets/libnxwidgets/include/cnxtoolbar.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/cnxtoolbar.hxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/include/cnxtoolbar.hxx b/NxWidgets/libnxwidgets/include/cnxtoolbar.hxx index 8e016c15e..69a004da5 100644 --- a/NxWidgets/libnxwidgets/include/cnxtoolbar.hxx +++ b/NxWidgets/libnxwidgets/include/cnxtoolbar.hxx @@ -197,6 +197,27 @@ namespace NXWidgets bool lower(void); /** + * Each window implementation also inherits from CCallback. CCallback, + * by default, forwards NX keyboard input to the various widgets residing + * in the window. But NxConsole is a different usage model; In this case, + * keyboard input needs to be directed to the NxConsole character driver. + * This method can be used to enable (or disable) redirection of NX + * keyboard input from the window widgets to the NxConsole + * + * @param handle. The NXCONSOLE handle. If non-NULL, NX keyboard + * input will be directed to the NxConsole driver using this + * handle; If NULL (the default), NX keyboard input will be + * directed to the widgets within the window. + */ + +#ifdef CONFIG_NXCONSOLE_NXKBDIN + inline void redirectNxConsole(NXCONSOLE handle) + { + setNxConsole(handle); + } +#endif + + /** * Set an individual pixel in the toolbar with the specified color. * * @param pPos The location of the pixel to be filled. |