User manual
Linux Guide taskit GmbH
11.5. Input driver reference
11.5.1. struct portuxinputevent
Name
struct portuxinputevent— describes an input event
Synopsis
struct portuxinputevent {
unsigned short flags;
unsigned int value;
};
Members
flags - some additional flags to change the handling of the event
value - distance of a mouse movement or one of the key/button values, that can be
reported to the input system, refer to include/linux/input.h for more information
Description
This structure is used by portuxinput_report_event to report events to the input system.
With flags member you can decide, how value is treated.
11.5.2. struct matrixentry
Name
struct matrixentry— used in PORTUXMATRIX_IOC_GETKEY and
PORTUXMATRIX_IOC_SETKEY ioctl
Synopsis
struct matrixentry {
unsigned char x;
unsigned char y;
unsigned char layer;
struct portuxinputevent value;
};
Members
x - column on the matrix keyboard
y - row on the matrix keyboard
layer - number of the layer which the event value ought to happen in
value - the event that should happen, if key in (x,y) is pressed
11.5.3. struct irentry
Name
struct irentry— used in PORTUXIR_IOC_GETKEY and PORTUXIR_IOC_SETKEY ioctl
Page 46 of 65 Version 1.26 (2008-04-30)