summaryrefslogtreecommitdiff
path: root/apps/plugins/lib/touchscreen.h
diff options
context:
space:
mode:
authorKarl Kurbjun <kkurbjun@gmail.com>2009-08-02 07:05:30 +0000
committerKarl Kurbjun <kkurbjun@gmail.com>2009-08-02 07:05:30 +0000
commit0131a3873e0cb05bd357326b441f2cbc1884c657 (patch)
treebf224f3e36c3b052f3583d5692eae12d9c922f55 /apps/plugins/lib/touchscreen.h
parente9b061a7174298c61dd1f935a38654e07f573197 (diff)
downloadrockbox-0131a3873e0cb05bd357326b441f2cbc1884c657.zip
rockbox-0131a3873e0cb05bd357326b441f2cbc1884c657.tar.gz
rockbox-0131a3873e0cb05bd357326b441f2cbc1884c657.tar.bz2
rockbox-0131a3873e0cb05bd357326b441f2cbc1884c657.tar.xz
Pluginlib: Add support for general buttons. Add menu and quit buttons to Reversi. MRobe 500: Modify touch handler to return the previous data always rather than 0 when there is no touch.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22110 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/touchscreen.h')
-rw-r--r--apps/plugins/lib/touchscreen.h94
1 files changed, 0 insertions, 94 deletions
diff --git a/apps/plugins/lib/touchscreen.h b/apps/plugins/lib/touchscreen.h
deleted file mode 100644
index cd5251e..0000000
--- a/apps/plugins/lib/touchscreen.h
+++ /dev/null
@@ -1,94 +0,0 @@
-/***************************************************************************
-* __________ __ ___.
-* Open \______ \ ____ ____ | | _\_ |__ _______ ___
-* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
-* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
-* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
-* \/ \/ \/ \/ \/
-* $Id$
-*
-* Copyright (C) 2008 by Maurus Cuelenaere
-*
-* This program is free software; you can redistribute it and/or
-* modify it under the terms of the GNU General Public License
-* as published by the Free Software Foundation; either version 2
-* of the License, or (at your option) any later version.
-*
-* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
-* KIND, either express or implied.
-*
-****************************************************************************/
-
-#ifndef _PLUGIN_LIB_TOUCHSCREEN_H_
-#define _PLUGIN_LIB_TOUCHSCREEN_H_
-
-#include "plugin.h"
-
-#ifdef HAVE_TOUCHSCREEN
-
-struct ts_mapping
-{
- int tl_x; /* top left */
- int tl_y;
- int width;
- int height;
-};
-
-struct ts_mappings
-{
- struct ts_mapping *mappings;
- int amount;
-};
-
-unsigned int touchscreen_map(struct ts_mappings *map, int x, int y);
-
-struct ts_raster
-{
- int tl_x; /* top left */
- int tl_y;
- int width;
- int height;
- int raster_width;
- int raster_height;
-};
-
-struct ts_raster_result
-{
- int x;
- int y;
-};
-
-unsigned int touchscreen_map_raster(struct ts_raster *map, int x, int y, struct ts_raster_result *result);
-
-struct ts_raster_button_mapping
-{
- struct ts_raster *raster;
- bool drag_drop_enable; /* ... */
- bool double_click_enable; /* ... */
- bool click_enable; /* ... */
- bool move_progress_enable; /* ... */
- bool two_d_movement_enable; /* ... */
- struct ts_raster_result two_d_from; /* ... */
- int _prev_x; /* Internal: DO NOT MODIFY! */
- int _prev_y; /* Internal: DO NOT MODIFY! */
- int _prev_btn_state; /* Internal: DO NOT MODIFY! */
-};
-
-struct ts_raster_button_result
-{
- enum{
- TS_ACTION_NONE,
- TS_ACTION_MOVE,
- TS_ACTION_CLICK,
- TS_ACTION_DOUBLE_CLICK,
- TS_ACTION_DRAG_DROP,
- TS_ACTION_TWO_D_MOVEMENT
- } action;
- struct ts_raster_result from;
- struct ts_raster_result to;
-};
-
-struct ts_raster_button_result touchscreen_raster_map_button(struct ts_raster_button_mapping *map, int x, int y, int button);
-
-#endif /* HAVE_TOUCHSCREEN */
-#endif /* _PLUGIN_LIB_TOUCHSCREEN_H_ */