Using CGEventTapCreate Trouble with parameters in Swift
I am trying to trap keypresses using a CGEventTapCreate etc in Swift. I want to do this so that when my toddler is using a program the Mac, I can limit which keys do something. I appreciate that I need to enable assistive technology to get CGEventTap to work I am having trouble understanding what I need to do in Swift to get the final parameter in the call. Essentially, I do not understand part of the documentation at quartz event documentation Specifically the final parameter which is described by refcon: A pointer to user-defined data. This pointer is passed into the callback function