1: /*
2: * Guitar-ZyX(tm)::MasterControlProgram - portable guitar F/X controller
3: * Copyright (C) 2009 Douglas McClendon
4: *
5: * This program is free software: you can redistribute it and/or modify
6: * it under the terms of the GNU General Public License as published by
7: * the Free Software Foundation, version 3 of the License.
8: *
9: * This program is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12: * GNU General Public License for more details.
13: *
14: * You should have received a copy of the GNU General Public License
15: * along with this program. If not, see <http://www.gnu.org/licenses/>.
16: */
17: /*
18: #############################################################################
19: #############################################################################
20: #
21: # gzmcpc::input: input header file
22: #
23: #############################################################################
24: ##
25: ## Copyright 2008-2009 Douglas McClendon <dmc AT filteredperception DOT org>
26: ##
27: #############################################################################
28: #############################################################################
29: #
30: */
31:
32: #ifndef _NDS_CLIENT_INPUT_H
33: #define _NDS_CLIENT_INPUT_H
34:
35:
36:
37: #define DEFAULT_INPUT_POLL_RATE 60
38:
39:
40:
41:
42: #include <nds.h>
43:
44:
45: #include "time.h"
46:
47:
48:
49:
50: typedef enum {
51: IH_NONE,
52: IH_METROGNOME_INC,
53: IH_METROGNOME_DEC,
54: IH_WPX_INC,
55: IH_WPX_DEC,
56: IH_WPY_INC,
57: IH_WPY_DEC,
58: IH_PRESET_INC,
59: IH_PRESET_DEC,
60: } input_held_type;
61:
62:
63:
64:
65: void gzmcpc_poll_input(void);
66:
67: void global_input_processor(void);
68:
69:
70:
71: extern touchPosition touchdata;
72: extern u16 heldkeys;
73: extern u16 upkeys;
74: extern u16 downkeys;
75:
76: extern input_held_type heldover;
77: extern time_val heldover_sunset;
78:
79: extern unsigned char input_poll_rate;
80: extern time_val next_input_poll;
81:
82:
83: #endif // _NDS_CLIENT_INPUT_H
84: