diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2010-01-14 20:16:03 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2010-01-14 20:16:03 +0000 |
commit | b3cba9021f0b5437afbacc286b5e026c84ef7141 (patch) | |
tree | e2d81af292de964188c26c7a5de312732978c949 /apps/keymaps | |
parent | 75400545be5fbec85517a20ac6a85e1beb7da6ff (diff) | |
download | rockbox-b3cba9021f0b5437afbacc286b5e026c84ef7141.tar.gz rockbox-b3cba9021f0b5437afbacc286b5e026c84ef7141.zip |
Meizu M6SP: add stubs so the meizu m6sp binary compiles and links
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24228 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/keymaps')
-rw-r--r-- | apps/keymaps/keymap-meizu-m6sp.c | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-meizu-m6sp.c b/apps/keymaps/keymap-meizu-m6sp.c new file mode 100644 index 0000000000..962b8b5579 --- /dev/null +++ b/apps/keymaps/keymap-meizu-m6sp.c | |||
@@ -0,0 +1,76 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2006 Jonathan Gordon | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | |||
22 | /* Button Code Definitions for the toshiba gigabeat target */ | ||
23 | #include <stdio.h> | ||
24 | #include <string.h> | ||
25 | #include <stdlib.h> | ||
26 | |||
27 | #include "config.h" | ||
28 | #include "action.h" | ||
29 | #include "button.h" | ||
30 | #include "settings.h" | ||
31 | |||
32 | /* | ||
33 | * The format of the list is as follows | ||
34 | * { Action Code, Button code, Prereq button code } | ||
35 | * if there's no need to check the previous button's value, use BUTTON_NONE | ||
36 | * Insert LAST_ITEM_IN_LIST at the end of each mapping | ||
37 | */ | ||
38 | |||
39 | /* CONTEXT_CUSTOM's used in this file... | ||
40 | |||
41 | CONTEXT_CUSTOM|CONTEXT_TREE = the standard list/tree defines (without directions) | ||
42 | CONTEXT_CUSTOM|CONTEXT_SETTINGS = the direction keys for the eq/col picker screens | ||
43 | i.e where up/down is inc/dec | ||
44 | CONTEXT_SETTINGS = up/down is prev/next, l/r is inc/dec | ||
45 | |||
46 | */ | ||
47 | |||
48 | /* copied from Meizu M6SP keymap */ | ||
49 | static const struct button_mapping button_context_standard[] = { | ||
50 | #if 0 /* disabled for now, there is no BUTTON_UP/DOWN yet */ | ||
51 | { ACTION_STD_PREV, BUTTON_UP, BUTTON_NONE }, | ||
52 | { ACTION_STD_PREVREPEAT, BUTTON_UP|BUTTON_REPEAT, BUTTON_NONE }, | ||
53 | { ACTION_STD_NEXT, BUTTON_DOWN, BUTTON_NONE }, | ||
54 | { ACTION_STD_NEXTREPEAT, BUTTON_DOWN|BUTTON_REPEAT, BUTTON_NONE }, | ||
55 | #endif | ||
56 | { ACTION_STD_CANCEL, BUTTON_LEFT, BUTTON_NONE }, | ||
57 | |||
58 | { ACTION_STD_CONTEXT, BUTTON_SELECT|BUTTON_REPEAT,BUTTON_SELECT }, | ||
59 | |||
60 | { ACTION_STD_QUICKSCREEN, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU }, | ||
61 | { ACTION_STD_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, | ||
62 | |||
63 | { ACTION_STD_OK, BUTTON_SELECT|BUTTON_REL, BUTTON_SELECT }, | ||
64 | { ACTION_STD_OK, BUTTON_RIGHT, BUTTON_NONE }, | ||
65 | |||
66 | LAST_ITEM_IN_LIST | ||
67 | }; /* button_context_standard */ | ||
68 | |||
69 | |||
70 | const struct button_mapping* get_context_mapping(int context) | ||
71 | { | ||
72 | (void)context; | ||
73 | |||
74 | /* TODO add more button contexts */ | ||
75 | return button_context_standard; | ||
76 | } | ||