nanogui: Re: Problem with VK_XX constants
Subject:
Problem with VK_XX constants
From:
"Greg Haerr" ####@####.####
Date:
6 Nov 2001 05:49:42 -0000
Message-Id: <00fc01c16686$a82c2240$3aba46a6@xmission.com>
: We are using Microwindows (not nano-x)
: We catch key stock with WM_KEYDOWN and WM_CHAR
and filter the key number with the Virtual Key Constants VK_xx ...
Currently, the translation from internal Microwindows key-values
(MWKEY_xxx) to Win32 key values is not performed.
You will have to add a case statement to the function
MwDeliverKeyboardEvent in file src/mwin/winevent.c,
which translates from MWKEY_xxx to VK_xxx.
: We i compilr the code under Windows with Visual Studio
VK_F1 correspond to the F1 key :-)
but under Linux VK_F1 didn't react.
In fact F1 key send 0xF81B and VK_F1 = 0x70
This likely works under Windows because the actual
key values returned by the operating system are in fact
Win32-compatible ;-)
BTW, which version of Microwindows do you have ported
to Windows using Visual Studio? I would be very interested
in receiving this work back so that others can use Microwindows
under Windows.
Regards,
Greg