PERFORCE change 215196 for review
Brooks Davis
brooks at FreeBSD.org
Tue Jul 31 21:47:38 UTC 2012
http://p4web.freebsd.org/@@215196?ac=10
Change 215196 by brooks at brooks_ecr_current on 2012/07/31 21:47:36
Add two more trivial dialog types.
Affected files ...
.. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.c#13 edit
.. //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.h#11 edit
Differences ...
==== //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.c#13 (text+ko) ====
@@ -738,6 +738,15 @@
ts_drain();
switch (type) {
+ case FBDT_EAST2CLOSE:
+ for (;;) {
+ ts = ts_poll();
+ if (ts->ts_gesture == TSG_EAST) {
+ if (ts_poll()->ts_count != 0)
+ ts_drain();
+ return(FBDA_OK);
+ }
+ }
case FBDT_PINCH2CLOSE:
for (;;) {
ts = ts_poll();
@@ -767,6 +776,15 @@
return(FBDA_UP);
}
}
+ case FBDT_WEST2CLOSE:
+ for (;;) {
+ ts = ts_poll();
+ if (ts->ts_gesture == TSG_WEST) {
+ if (ts_poll()->ts_count != 0)
+ ts_drain();
+ return(FBDA_OK);
+ }
+ }
default:
err(1, "Unhandled dialog type");
}
==== //depot/projects/ctsrd/beribsd/src/ctsrd-lib/libde4tc/de4tc.h#11 (text+ko) ====
@@ -67,8 +67,10 @@
} fb_dialog_action;
typedef enum {
+ FBDT_EAST2CLOSE,
FBDT_PINCH2CLOSE,
FBDT_PINCH_OR_VSCROLL,
+ FBDT_WEST2CLOSE,
#ifdef NOTYET
FBDT_OK,
FBDT_OKCANCEL,
More information about the p4-projects
mailing list