![]() |
Libmacro
0.2
Libmacro is an extensible macro and hotkey library.
|
Intercept reads from hardware, and may block. More...
#include "mcr/standard/standard.h"Go to the source code of this file.
Classes | |
| struct | mcr_intercept |
Functions | |
| MCR_API void | mcr_intercept_reset_modifiers (struct mcr_context *ctx) |
| MCR_API bool | mcr_intercept_blockable (struct mcr_context *ctx) |
| MCR_API void | mcr_intercept_set_blockable (struct mcr_context *ctx, bool enable) |
| MCR_API int | mcr_intercept_reset (struct mcr_context *ctx) |
| MCR_API bool | mcr_intercept_enabled (struct mcr_context *ctx) |
| MCR_API int | mcr_intercept_set_enabled (struct mcr_context *ctx, bool enable) |
| MCR_API unsigned int | mcr_intercept_modifiers (struct mcr_context *ctx) |
Intercept reads from hardware, and may block.
Definition in file intercept.h.
| MCR_API bool mcr_intercept_blockable | ( | struct mcr_context * | ctx | ) |
| MCR_API bool mcr_intercept_enabled | ( | struct mcr_context * | ctx | ) |
Is any hardware intercepting.
| MCR_API unsigned int mcr_intercept_modifiers | ( | struct mcr_context * | ctx | ) |
Modifiers reported by hardware or OS.
| MCR_API int mcr_intercept_reset | ( | struct mcr_context * | ctx | ) |
If currently enabled this will reset all current hardware intercepts.
| MCR_API void mcr_intercept_reset_modifiers | ( | struct mcr_context * | ctx | ) |
Set known modifiers from hardware values.
| MCR_API void mcr_intercept_set_blockable | ( | struct mcr_context * | ctx, |
| bool | enable | ||
| ) |
| MCR_API int mcr_intercept_set_enabled | ( | struct mcr_context * | ctx, |
| bool | enable | ||
| ) |
Enable intercept from hardware. Refer to platform functions to set which hardware to intercept.