Mouse event translation for display-tile

Name

filter-tile : Mouse event translation for display-tile

Synopsis

#include <ggi/filter/tile.h>

filter-tile

Description

filter-tile is used by display-tile(7) to shift absolute mouse coordinates for tiles that are not positioned at the origin. filter-tile is not designed to be used by anything but display-tile(7).

Controls

A filter-tile module understands the following command codes sent by ggControl(3):

GII_TILE_ADD_RULE

Add a rule, which will shift absolute mouse events from the same source as origin by the amounts specified in shift_x and shift_y. shift_x and shift_y are added to pmove.x and pmove.y in the matching events.

Data:

struct gii_tile_rule {
        uint32_t origin;
        int shift_x;
        int shift_y;
};

See Also