13.07.2015 Views

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Tutorial on the Lotion <strong>User</strong> <strong>Interface</strong> ClassesconfigApplets |= APPLET_PHOTO_BROWSER;} else if (strcmp(argv[i + 1], "presentation") == 0) {configApplets |= APPLET_PRESENTATION;} else if (strcmp(argv[i + 1], "slideshow") == 0) {configApplets |= APPLET_SLIDESHOW_PRESENTATION;} else if (strcmp(argv[i + 1], "browser") == 0) {configApplets |= APPLET_BROWSER;} else {argErrorExit("Unknown applet: %s\n", argv[i + 1]);}...configAppletsAdded = true;i++;}if (!configAppletsAdded) {argErrorExit("No arguments specified for -applets switch\n",NULL);}} else if (strcmp(argv[i], "-input") == 0) {5. The input command sets the mouse, touchscreen, and keyboard options. SeeExample 5-7:Example 5-7 Setting the input devices...} else if (strcmp(argv[i], "-input") == 0) {input_descriptor d;if (argc < i + 2 || argv[i + 1][0] == '-') {argErrorExit("Too few arguments specified for -input\n", NULL);}...if (strcmp(argv[i + 1], "mouse") == 0) {d.mode = INPUT_MODE_MOUSE;} else if (strcmp(argv[i + 1], "touch") == 0) {d.mode = INPUT_MODE_TOUCH;} else {argErrorExit("Unknown argument specified for -input: %s\n",argv[i + 1]);}i++;if (argc > i + 1 && argv[i + 1][0] != '-') {d.arg = argv[i + 1];i++;} else {d.arg = "";}configInputs.add(d);} else if (strcmp(argv[i], "-help") == 0) {6. If help is entered on the command line, the command options are listed. See Example 5-8on page 5-15:ARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 5-14ID070710Non-Confidential - Draft - Beta

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!