Re: How to get keyboard modifiers?



On 10 Sep 2001 13:03:49 +0300, Yanko Kaneti said:

 from my limited experience:
 
 GdkModifierType modifier;
 gdk_window_get_pointer (widget->window, NULL, NULL, &modifier);

I found out a better way, the GdkEventCrossing has a member called
state, it's the keyboard modifier state at the time of the
enter_notify_event.

Sorry I didn't realize that sooner but the header file was not
commented.

Thanks for looking into it for me though!

-- 
--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
.__                          ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]