User manual
Linux Guide taskit GmbH
as a relative movement of the mouse cursor. The next two flags describe the direction.
They should not be used, if this flag is not set. If this flag and all of the above are not set,
than value is treated as a key/button code.
PORTUXINPUT_MASK_REL_X: Mouse movement in x direction
PORTUXINPUT_MASK_REL_Y: Mouse movement in y direction
PORTUXINPUT_MASK_LSHIFT: Left shift key is simulated while sending the key event.
PORTUXINPUT_MASK_RSHIFT: Right shift key is simulated while sending the key event
PORTUXINPUT_MASK_LALT: Left alt key is simulated while sending the key event.
PORTUXINPUT_MASK_RALT: Right alt key is simulated while sending the key event.
PORTUXINPUT_MASK_LCTRL: Left ctrl key is simulated while sending the key event.
PORTUXINPUT_MASK_RCTRL: Right ctrl key is simulated while sending the key event.
11.5.7. Ioctl functions
Every module except for portuxkbd provides ioctl functions to change its settings or
execute commands. This section describes the usage of these functions. Ioctl functions
where no argument is mentioned ignore it. These functions will return -1 on failure and the
specific error is reported via the global variable errno as ioctl functions of all normal device
files would do.
ioctl functions provided by the main module portuxinput:
Ioctl function description
PORTUXINPUT_IOC_SETKEYARRAYM
ODE
Sets the mode, how the mobile phone like keys work.
There are three modes to be passed as a char.
PORTUXINPUT_KEYARRAY_MODE_BLIND - a key
press is only delivered to the input system if a timeout
occurs.
PORTUXINPUT_KEYARRAY_MODE_BACKSPACE
- every key is delivered to the input system, but
before every one except the first a backspace is send
to delete the last key.
PORTUXINPUT_KEYARRAY_MODE_EVERY - like
PORTUXINPUT_KEYARRAY_MODE_BACKSPACE,
but without backspaces
PORTUXINPUT_IOC_SETKEYARRAY
Sets the key array map. It takes a pointer as an
argument defined as typedef struct portuxinputevent
keyarray[PORTUX_MAX_KEYARRAYS]
[PORTUX_MAX_KEYARRAYELEMENTS]. So you
can define 10 key arrays, where each consists of at
most 16 entries. If not all 16 entries are used, the
Page 49 of 65 Version 1.26 (2008-04-30)