diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-10-31 16:22:32 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-10-31 16:22:32 +0000 |
commit | b30447cd9ce7cc3e9af64be6105342bcdf3b3637 (patch) | |
tree | 246aacdf0879d5e17904ba9d9a1938b11a240e23 /apps/settings_list.c | |
parent | a4f112729b7520ba44bcf2323a96347e4b8dae12 (diff) |
Default to absolute point mode on RaaA and Onda targets. Cowon D2 and MRobe 500 stick to grid mode for now.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28423 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r-- | apps/settings_list.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index 756d58e88f..3e7f41ee75 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -464,6 +464,18 @@ static void qs_set_default(void* setting, void* defaultval) } #endif #ifdef HAVE_TOUCHSCREEN + +#if defined(APPLICATION) + || defined(ONDA_VX747) + || defined(ONDA_VX767) + || defined(ONDA_VX747P) + || defined(ONDA_VX777) + +#define DEFAULT_TOUCHSCREEN_MODE TOUCHSCREEN_POINT +#else +#define DEFAULT_TOUCHSCREEN_MODE TOUCHSCREEN_BUTTON +#endif + static void tsc_load_from_cfg(void* setting, char*value) { struct touchscreen_parameter *var = (struct touchscreen_parameter*) setting; @@ -1711,7 +1723,7 @@ const struct settings_list settings[] = { audiohw_enable_speaker), #endif #ifdef HAVE_TOUCHSCREEN - CHOICE_SETTING(0, touch_mode, LANG_TOUCHSCREEN_MODE, TOUCHSCREEN_BUTTON, + CHOICE_SETTING(0, touch_mode, LANG_TOUCHSCREEN_MODE, DEFAULT_TOUCHSCREEN_MODE, "touchscreen mode", "point,grid", NULL, 2, ID2P(LANG_TOUCHSCREEN_POINT), ID2P(LANG_TOUCHSCREEN_GRID)), CUSTOM_SETTING(0, ts_calibration_data, -1, |