My Project
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
touch_manager.h
Go to the documentation of this file.
1 /*
2  * OpenVirtualization:
3  * For additional details and support contact developer@sierraware.com.
4  * Additional documentation can be found at www.openvirtualization.org
5  *
6  * Copyright (C) 2010-2014 SierraWare
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License
10  * as published by the Free Software Foundation; either version 2
11  * of the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21  *
22  */
23 /*
24  * Header for Touch manager implementation
25  */
26 
27 #ifndef __TOUCH_MANAGER_H__
28 #define __TOUCH_MANAGER_H__
29 
30 #include <sw_types.h>
31 
32 typedef void (*touch)();
33 
37 struct touch_info {
38  char last_touched[500];
39  u32 x, x2;
40  u32 y, y2;
41  char type[500];
43 };
44 
45 extern struct touch_info touch_info;
46 
56 void on_touch(void);
60 void on_release(void);
61 
62 #endif
char type[500]
Definition: touch_manager.h:41
u32 y2
Definition: touch_manager.h:40
touch activate_touch()
Definition: touch_manager.c:44
u32 x2
Definition: touch_manager.h:39
char last_touched[500]
Definition: touch_manager.h:38
u32 y
Definition: touch_manager.h:40
void(* touch)()
Definition: touch_manager.h:32
void on_touch(void)
On touch of a key in the keyboard, the key changes it colour by drawing the keyon bitmaps over the ex...
Definition: virtual_keyboard.c:140
s32 active_textbox
Definition: touch_manager.h:42
Definition: touch_manager.h:37
u32 x
Definition: touch_manager.h:39
void on_release(void)
On release of the key the default key bitmap is loaded again and the key pressed is stored in an arra...
Definition: virtual_keyboard.c:311