From 01fab0c78eeef5461a896847f05caec51d26050f Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 4 Dec 2008 03:19:59 +0000 Subject: Enable keypad input git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1411 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/graphics/nxtk/nxtk_events.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'nuttx/graphics/nxtk/nxtk_events.c') diff --git a/nuttx/graphics/nxtk/nxtk_events.c b/nuttx/graphics/nxtk/nxtk_events.c index 1832eda75..52323a751 100644 --- a/nuttx/graphics/nxtk/nxtk_events.c +++ b/nuttx/graphics/nxtk/nxtk_events.c @@ -72,7 +72,7 @@ static void nxtk_mousein(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos, ubyte buttons, FAR void *arg); #endif #ifdef CONFIG_NX_KBD -static void nxtk_kbdin(NXWINDOW hwnd, ubyte nch, const ubyte *ch); +static void nxtk_kbdin(NXWINDOW hwnd, ubyte nch, const ubyte *ch, FAR void *arg); #endif /**************************************************************************** @@ -91,7 +91,7 @@ const struct nx_callback_s g_nxtkcb = , nxtk_mousein /* mousein */ #endif #ifdef CONFIG_NX_KBD - , nxtk_kbdin1 /* kbdin */ + , nxtk_kbdin /* kbdin */ #endif }; @@ -252,7 +252,7 @@ static void nxtk_mousein(NXWINDOW hwnd, FAR const struct nxgl_point_s *pos, ****************************************************************************/ #ifdef CONFIG_NX_KBD -static void nxtk_kbdin(NXWINDOW hwnd, ubyte nch, const ubyte *ch) +static void nxtk_kbdin(NXWINDOW hwnd, ubyte nch, const ubyte *ch, FAR void *arg) { FAR struct nxtk_framedwindow_s *fwnd = (FAR struct nxtk_framedwindow_s *)hwnd; @@ -260,7 +260,7 @@ static void nxtk_kbdin(NXWINDOW hwnd, ubyte nch, const ubyte *ch) if (fwnd->fwcb->kbdin) { - fwnd->fwcb->kbdin((NXTKWINDOW)fwnd, nch, ch); + fwnd->fwcb->kbdin((NXTKWINDOW)fwnd, nch, ch, fwnd->fwarg); } } #endif -- cgit v1.2.3