nanogui: FLTK keyboard question
Subject:
Re: [nanogui] FLTK keyboard question
From:
"Greg Haerr" ####@####.####
Date:
27 Jun 2011 17:09:13 -0000
Message-Id: <EFAB8976B3D74880BD6BD0CC51450C17@winXP>
> I read in an old post that it would work with the kbd_ttyscan.c keyboard
> driver but not with the
> kbd_tty.c keyboard driver.
The former is a scancode driver that uses the values of the
keyboard scancodes and looks up the keycode values
from an internal table. The latter driver uses the OS-returned
values after its internal processing.
> I am using my kbd_dj keyboard driver. Do I need to make a change to that
> for FLTK?
No
> What is the purpose of those?
> scancode = *buf & 0x7f;
> mwkey = keymap[scancode];
That's the scancode and the internal table lookup to get the
key code value.
Regards,
Greg