touch screen handler for the microchip AR1020

Committer:
hlipka
Date:
Thu Feb 24 22:05:04 2011 +0000
Revision:
6:a6971458d612
Parent:
4:510ea5b28a05
calibration works now

Who changed what in which revision?

UserRevisionLine numberNew contents of line
hlipka 0:cf4dd04052e3 1 /*
hlipka 0:cf4dd04052e3 2 * mbed AR1020 library
hlipka 0:cf4dd04052e3 3 * Copyright (c) 2010 Hendrik Lipka
hlipka 0:cf4dd04052e3 4 *
hlipka 0:cf4dd04052e3 5 * Permission is hereby granted, free of charge, to any person obtaining a copy
hlipka 0:cf4dd04052e3 6 * of this software and associated documentation files (the "Software"), to deal
hlipka 0:cf4dd04052e3 7 * in the Software without restriction, including without limitation the rights
hlipka 0:cf4dd04052e3 8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
hlipka 0:cf4dd04052e3 9 * copies of the Software, and to permit persons to whom the Software is
hlipka 0:cf4dd04052e3 10 * furnished to do so, subject to the following conditions:
hlipka 0:cf4dd04052e3 11 *
hlipka 0:cf4dd04052e3 12 * The above copyright notice and this permission notice shall be included in
hlipka 0:cf4dd04052e3 13 * all copies or substantial portions of the Software.
hlipka 0:cf4dd04052e3 14 *
hlipka 0:cf4dd04052e3 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
hlipka 0:cf4dd04052e3 16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
hlipka 0:cf4dd04052e3 17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
hlipka 0:cf4dd04052e3 18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
hlipka 0:cf4dd04052e3 19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
hlipka 0:cf4dd04052e3 20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
hlipka 0:cf4dd04052e3 21 * THE SOFTWARE.
hlipka 0:cf4dd04052e3 22 */
hlipka 0:cf4dd04052e3 23
hlipka 0:cf4dd04052e3 24 #ifndef __TOUCHEVENT_H__
hlipka 0:cf4dd04052e3 25 #define __TOUCHEVENT_H__
hlipka 0:cf4dd04052e3 26
hlipka 4:510ea5b28a05 27 /**
hlipka 4:510ea5b28a05 28 this class encapsulates a single touch event. It contains the coordinates (x,y) and the pen state (==0->up, >0->down)
hlipka 4:510ea5b28a05 29 */
hlipka 0:cf4dd04052e3 30 class TouchEvent
hlipka 0:cf4dd04052e3 31 {
hlipka 0:cf4dd04052e3 32 public:
hlipka 0:cf4dd04052e3 33 int x;
hlipka 0:cf4dd04052e3 34 int y;
hlipka 0:cf4dd04052e3 35 int pen;
hlipka 0:cf4dd04052e3 36 };
hlipka 0:cf4dd04052e3 37
hlipka 0:cf4dd04052e3 38 #endif