nanogui: how to get the input of KEY?
Subject:
how to get the input of KEY?
From:
atom ####@####.####
Date:
10 May 2001 04:01:35 -0000
Message-Id: <3AFA125A.4020202@zh.t2-design.com>
hi ,all:
how to get the input of KEY?
I know how to get the input of mouse , for example :
buttons = GrNewWindow(...);
GrMapWindow(buttons);
GrSelectEvents(buttons, GR_EVENT_MASK_BUTTON_DOWN);
GrGetNextEvent(&event);
then event->button.x and event->button.y give me the
mouses X and Y.
if I GrSelectEvents(buttons, GR_EVENT_MASK_BUTTON_DOWN |
GR_EVENT_MASK_KEY_DOWN) , then how to get the input of KEY?
thanks