summaryrefslogtreecommitdiff
path: root/NxWidgets/libnxwidgets/src/cnxwindow.cxx
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-20 18:56:14 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-05-20 18:56:14 +0000
commit01bce341a9d065e8250f655c246c07a525779bc0 (patch)
tree8420c219c8f334bb6ec77acb5e51a3872bb2461e /NxWidgets/libnxwidgets/src/cnxwindow.cxx
parentc5ff7843f26438947da8fa0b0fc9b255aeb1d638 (diff)
downloadpx4-nuttx-01bce341a9d065e8250f655c246c07a525779bc0.tar.gz
px4-nuttx-01bce341a9d065e8250f655c246c07a525779bc0.tar.bz2
px4-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/src/cnxwindow.cxx')
-rw-r--r--NxWidgets/libnxwidgets/src/cnxwindow.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/NxWidgets/libnxwidgets/src/cnxwindow.cxx b/NxWidgets/libnxwidgets/src/cnxwindow.cxx
index 5ba4d734c..b38667d8d 100644
--- a/NxWidgets/libnxwidgets/src/cnxwindow.cxx
+++ b/NxWidgets/libnxwidgets/src/cnxwindow.cxx
@@ -99,7 +99,8 @@ bool CNxWindow::open(void)
// Create the window
- m_hNxWindow = nx_openwindow(m_hNxServer, vtable, (FAR void *)m_widgetControl);
+ m_hNxWindow = nx_openwindow(m_hNxServer, vtable,
+ (FAR void *)static_cast<CCallback*>(this));
return m_hNxWindow != NULL;
}