Re: [linux-audio-dev] Re: C++ Keyboard Event Handling

From: Paul Davis <paul@email-addr-hidden>
Date: Fri Jan 20 2006 - 14:58:51 EET

> > Anyway, keybord input is done by handling "press" and "release"
> > events. When you get a "press" event, you set some state variable for
> > the corresponding key to "down", and when you get a "release" event,
> > you clear that state variable.
>
> Sounds great! Do you have a code example?

not possible without specifying which graphical user toolkit you want to use.
if you don't want to use a GUI toolkit, you are talking about raw terminal keycodes,
which can be done but its hard, non-portable and hacky.

> Hm, I'm wondering if I could do this sticking to C++ builtins...
>

totally out of the question.
Received on Fri Jan 20 16:15:11 2006

This archive was generated by hypermail 2.1.8 : Fri Jan 20 2006 - 16:15:11 EET