diff options
Diffstat (limited to 'NxWidgets/libnxwidgets/include/inxwindow.hxx')
-rw-r--r-- | NxWidgets/libnxwidgets/include/inxwindow.hxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/NxWidgets/libnxwidgets/include/inxwindow.hxx b/NxWidgets/libnxwidgets/include/inxwindow.hxx index 750994a71..210a1e6ce 100644 --- a/NxWidgets/libnxwidgets/include/inxwindow.hxx +++ b/NxWidgets/libnxwidgets/include/inxwindow.hxx @@ -47,6 +47,10 @@ #include <stdint.h> #include <stdbool.h> +#ifdef CONFIG_NXCONSOLE_NXKBDIN +# include <nuttx/nx/nxconsole.h> +#endif + /**************************************************************************** * Pre-Processor Definitions ****************************************************************************/ @@ -169,6 +173,24 @@ namespace NXWidgets virtual bool lower(void) = 0; /** + * 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 + virtual void redirectNxConsole(NXCONSOLE handle) = 0; +#endif + + /** * Set an individual pixel in the window with the specified color. * * @param pPos The location of the pixel to be filled. |