Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
intercept.h File Reference

Intercept reads from hardware, and may block. More...

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)
 

Detailed Description

Intercept reads from hardware, and may block.

Definition in file intercept.h.

Function Documentation

§ mcr_intercept_blockable()

MCR_API bool mcr_intercept_blockable ( struct mcr_context ctx)

§ mcr_intercept_enabled()

MCR_API bool mcr_intercept_enabled ( struct mcr_context ctx)

Is any hardware intercepting.

mcr_platform

§ mcr_intercept_modifiers()

MCR_API unsigned int mcr_intercept_modifiers ( struct mcr_context ctx)

Modifiers reported by hardware or OS.

mcr_platform

§ mcr_intercept_reset()

MCR_API int mcr_intercept_reset ( struct mcr_context ctx)

If currently enabled this will reset all current hardware intercepts.

§ mcr_intercept_reset_modifiers()

MCR_API void mcr_intercept_reset_modifiers ( struct mcr_context ctx)

Set known modifiers from hardware values.

§ mcr_intercept_set_blockable()

MCR_API void mcr_intercept_set_blockable ( struct mcr_context ctx,
bool  enable 
)

§ mcr_intercept_set_enabled()

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.

mcr_platform