Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to decipher EventRef object to get keycode from a keypress?

Hello,


I am making a Qt application and want to intercept keypresses at a deeper level. To do this I overrided the QWidget::macEvent() function to intercept the EventRef object.


For different events (i.e. keyboard events, mouse events, window events) EventRef is equal to the following values:


0x104d649f0

0x101425740

0x104d649f0

0x101485950

0x101425740

0x101485950


How can I tell if the event is a keyboard event? And how can I find out which key was pressed?

Mac mini, Mac OS X (10.7.5)

Posted on Feb 1, 2013 10:21 PM

Reply
1 reply

How to decipher EventRef object to get keycode from a keypress?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.