DRAG or ROTATE is recognized instead of PINCH

Bug #1358135 reported by Hendrik
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Geis
New
Undecided
Unassigned

Bug Description

First of all: Thanks for the framework. It's the only one I have found, that does not require own widgets, windows, etc.

In my code I'm first declaring a filter to get only two finger PINCH, DRAG and ROTATE events:

geis_filter_add_term(filter,
      GEIS_FILTER_CLASS,
      GEIS_CLASS_ATTRIBUTE_NAME, GEIS_FILTER_OP_EQ, GEIS_GESTURE_ROTATE,
      GEIS_GESTURE_ATTRIBUTE_TOUCHES, GEIS_FILTER_OP_EQ, 2,
      NULL);
    geis_filter_add_term(filter,
      GEIS_FILTER_CLASS,
      GEIS_CLASS_ATTRIBUTE_NAME, GEIS_FILTER_OP_EQ, GEIS_GESTURE_PINCH,
      GEIS_GESTURE_ATTRIBUTE_TOUCHES, GEIS_FILTER_OP_EQ, 2,
      NULL);
    geis_filter_add_term(filter,
      GEIS_FILTER_CLASS,
      GEIS_CLASS_ATTRIBUTE_NAME, GEIS_FILTER_OP_EQ, GEIS_GESTURE_DRAG,
      GEIS_GESTURE_ATTRIBUTE_TOUCHES, GEIS_FILTER_OP_EQ, 2,
      NULL);

I'm using the example code from the file geis2.c

Now I'm having the problem that geis always recognizes a DRAG or ROTATE gesture, when I'm acutally doing a PINCH gesture.
If I change the filter to PINCH gestures only, they are recognized correctly.

I allready tried to combine all gestures to have only one call for the geis_filter_add_term, but that didn't change anything.

Here are the infos from my touchscreen:

device 63616 "eGalaxTouch Virtual Device for Multi"
  "device name": eGalaxTouch Virtual Device for Multi
  "device id": 63616
  "device touches": 21
  "direct touch": true
  "independent touch": false
  "device X minimum": 0
  "device X maximum": 2047
  "device X resolution": 0
  "device Y minimum": 0
  "device Y maximum": 2047
  "device Y resolution": 0

Because I'm using geis for my bachelor thesis, I would really appreciate any help!
If you need more information, please let me know!

Revision history for this message
Hendrik (hoestreich) wrote :

Sorry, I just realized that every frame can be associated with more than one gesture class.
In my code I checked to which gesture class a frame is associated and had an else if structure so that only the first matching gesture class was printed out and the other matching classes were not recognized.

So it's not really a bug in geis!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.