Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
mcr_intercept_platform Struct Reference

#include <p_intercept.h>

Public Attributes

mtx_t lock
 
struct {
   struct mcr_Grabber *   grabbers
 
   size_t   grabber_count
 
}; 
 
struct {
   const char *const *   grab_paths
 
   size_t   grab_path_count
 
}; 
 
struct {
   const struct mcr_MapElement *   key_echos [2]
 
   size_t   key_echo_count [2]
 
}; 
 
char bit_retrieval [MCR_EVENTINDEX(KEY_CNT)+1]
 
size_t wm_echos [(WM_MOUSELAST - WM_MOUSEFIRST+1)]
 

Detailed Description

Linux intercept platform structure

Definition at line 34 of file p_intercept.h.

Member Data Documentation

§ bit_retrieval

char mcr_intercept_platform::bit_retrieval[MCR_EVENTINDEX(KEY_CNT)+1]

Get key pressed values from a device

KEY_CNT / 8 is a floor value, and may have remainder of some keys.

Definition at line 55 of file p_intercept.h.

§ grab_paths

const char* const* mcr_intercept_platform::grab_paths

Set of input event paths to try grabbing

Definition at line 44 of file p_intercept.h.

§ grabbers

struct mcr_Grabber* mcr_intercept_platform::grabbers

Ordered list so each grab can remove itself

Definition at line 39 of file p_intercept.h.

§ key_echos

const struct mcr_MapElement* mcr_intercept_platform::key_echos[2]

int key => echo event code (index of echo_events)

Definition at line 49 of file p_intercept.h.

§ lock

mtx_t mcr_intercept_platform::lock

Intercept critical sections

Definition at line 36 of file p_intercept.h.

§ wm_echos

size_t mcr_intercept_platform::wm_echos[(WM_MOUSELAST - WM_MOUSEFIRST+1)]

Map WPARAM hook windows message to size_t echo code. There is a min and max windows mouse message, so this is a statically typed array. Get the index by WPARAM - WM_MOUSEFIRST or

Definition at line 43 of file p_intercept.h.


The documentation for this struct was generated from the following file: