Keyboard Input in OSX

I was wondering if it is possible to read input data on a keyboard, on OSx from somewhere, for example GNU / Linux with / dev / input files.

The purpose of this is to make a very simple keylogger (learning goal) or if there is a function that I could call in C.

Thanks.

+3
source share
1 answer

Since not all readers have good intentions, like yours, I will not go into details, but will point you in the right direction.

As you know, WindowServer works in two environments: Carbon (old) and Cocoa (new). These are the corresponding APIs:

+3
source

Source: https://habr.com/ru/post/987450/


All Articles