nanogui: how to get the input of KEY?
Subject:
Re: how to get the input of KEY?
From:
Gary James ####@####.####
Date:
11 May 2001 01:16:58 -0000
Message-Id: <20010510211607.A779@pc.twcny.rr.com>
> ..... including the GR_EVENT_KEYSTROKE structure.
>
> So, using your example, you can get the keystroke information from
> event.keystroke.
>
> See nano-X.h for the full description of the GR_EVENT_KEYSTROKE
> structure.
Or take a look here:
http://home.twcny.rr.com/embedded/microwin/nxapi/nxstruct_GR_EVENT_KEYSTROKE.html
Gary James
####@####.####
http://home.twcny.rr.com/embedded/
> event.On Wednesday 09 May 2001 22:00, atom mentioned:
> > hi
> > 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
> >