Flipping X and Y Axes in evdev

#define EVDEV_FLIP_AXE_Y 0
#define EVDEV_FLIP_AXE_X 0


#if EVDEV_FLIP_AXE_X
data->point.x = drv->disp->driver.hor_res - data->point.x;
#endif

#if EVDEV_FLIP_AXE_Y
data->point.y = drv->disp->driver.ver_res - data->point.y;
#endif

Hi,

/*to invert axis swap EVDEV_XXX_MIN by EVDEV_XXX_MAX*/

As the comment says you can swap MIN and MAX to flip the axis.