}
if (emulate) {
+ int pos = -1;
+
if (cfg->button_zones && earliest >= 0) {
- int zones, left, right, pos;
+ pos = ms->touch[earliest].x;
+ }
+
+ if (pos >= 0) {
+ int zones, left, right;
double width;
zones = 0;
if (zones > 0) {
width = ((double)cfg->pad_width)/((double)zones);
- pos = ms->touch[earliest].x;
#ifdef DEBUG_GESTURES
xf86Msg(X_INFO, "buttons_update: pad width %d, zones %d, zone width %f, x %d\n",
cfg->pad_width, zones, width, pos);