Reading keyboard

How can I read some simultaneous keypressings ussing Photon? That is, I can
read things like CTRL A, but how can I read the simultaneous pressing of A
and B, for example.

Thanks!

\


Antoni Burguera i Burguera
Departament de Matemàtiques i Informàtica
Universitat de les Illes Balears

e-mail: antoni.burguera@uib.es
web: http://dmi.uib.es/~burguera

9D-La Novena Dimensió
http://www.novenadimensio.net
burguera@novenadimensio.net

Antoni Burguera i Burguera <burguera@novenadimensio.net> wrote:
: How can I read some simultaneous keypressings ussing Photon? That is, I can
: read things like CTRL A, but how can I read the simultaneous pressing of A
: and B, for example.

You need to examine the key events. Take a look at the docs for PhKeyEvent_t
in the Photon Library Reference.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

You need to examine the key events. Take a look at the docs for
PhKeyEvent_t
in the Photon Library Reference.

Thanks, I will take a deeper look at PhKeyEvent_t, but I have used this kind
of event already. The problem is (when reading a PhKeyEvent_t inside a
Ph_EV_KEY callback) only one of the keys is readed. And if I press two or
more keys some time, all the readings give me the same key. For my program,
it will be fine to read the keys pressed alternatively, but I can only read
one of them.

\

Antoni Burguera i Burguera
Departament de Matemàtiques i Informàtica
Universitat de les Illes Balears

e-mail: antoni.burguera@uib.es
web: http://dmi.uib.es/~burguera

9D-La Novena Dimensió
http://www.novenadimensio.net
burguera@novenadimensio.net