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

#include <p_device.h>

Public Attributes

struct mcr_contextcontext
 
struct uinput_user_dev device
 
struct {
   const int *   set_events
 
   size_t   set_event_count
 
}; 
 
struct {
   const mcr_EvbitRange_t *   event_bits
 
   size_t   event_bit_count
 
}; 
 
int fd
 
int event_fd
 
bool enabled
 

Detailed Description

Linux - Wrapper for uinput devices.

Definition at line 44 of file p_device.h.

Member Data Documentation

§ @27

struct { ... }

int => int[], input type to input bit array

§ device

struct uinput_user_dev mcr_Device::device

Create a device and write to it

Definition at line 47 of file p_device.h.

§ enabled

bool mcr_Device::enabled

false disabled, otherwise can write events to fd

Definition at line 62 of file p_device.h.

§ event_fd

int mcr_Device::event_fd

File descriptor for event node, to ioctl and read from

Definition at line 60 of file p_device.h.

§ fd

int mcr_Device::fd

File descriptor to write input_events

Definition at line 58 of file p_device.h.


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