Multipurpose key logger for Windows and macOS writhen in C++
Requires C++ 20, tested on apple clang 14 and VC++ 14
Overhead is about 1~2 mircoseconds(on first callback invocation)
On macOS, please add 'ApplicationServices.framework' to the project
- create an logger object
auto example_logger = event::keyboard::logger<callback, container, traits, event_mask...>();
- set callback function
example_logger.set_callback(callback_function);
- start
example_logger.start();
- cleanup
example_logger.stop();
- Null container
event::null_container = event::null_template_type
- Stored Containers
event::vector -> std::vector event::queue -> std::queue event::deque -> std::deque
- Table Containers
event::array -> std::array event::bitset -> std::bitset
- Null callback
event::null_container = event::null_type
- Function types
type -> std::function<void(type)> return_type(param...) -> std::function<return_type(parameter...)> return_type(*)(param...) return_type(class::*)(param...) std::function<return_type(param)...> lambda
- Key press
event::action::key_down
- Key release
event::action::key_up
- System keys
event::action::key_system