[ROOT] Handle Keyboard

From: Olivier Meplan (meplan@isn.in2p3.fr)
Date: Wed May 31 2000 - 11:55:37 MEST


Hi rooters
I have a class deriving from a TCanvas. I have rewritten the member
function  ExecuteEvent(Int_t event, Int_t px, Int_t py) and I want to
obtain some information about mouse and keyboard.

I have seen that event=1 if the left button is pressed and event=11 if
it is released.

-But how obtain a code for  the middle button and right button?
-When a key of the keyboard is pressed, event=24 but how to know which
key is pressed?

Thanks for your answers,
Olivier Meplan



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:26 MET