/
event-input.h
50 lines (41 loc) · 1.72 KB
/
event-input.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
* @file event-input.h
* Headers for the /dev/input event provider for the Mode Control Entity
* <p>
* Copyright © 2007-2011 Nokia Corporation and/or its subsidiary(-ies).
* <p>
* @author David Weinehall <david.weinehall@nokia.com>
*
* mce is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation.
*
* mce is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with mce. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _EVENT_INPUT_H_
#define _EVENT_INPUT_H_
#include <glib.h>
/** Path to the input device directory */
#define DEV_INPUT_PATH "/dev/input"
/** Prefix for event files */
#define EVENT_FILE_PREFIX "event"
/** Path to the GPIO key disable interface */
#define GPIO_KEY_DISABLE_PATH "/sys/devices/platform/gpio-keys/disabled_keys"
/** Path to the GConf settings for the event input */
#define MCE_GCONF_EVENT_INPUT_PATH "/system/osso/dsm/event_input"
#ifdef ENABLE_DOUBLETAP_EMULATION
/** Path to the use Fake Double Tap setting */
# define MCE_GCONF_USE_FAKE_DOUBLETAP_PATH MCE_GCONF_EVENT_INPUT_PATH "/use_fake_double_tap"
#endif
/** Path to the touch unblock delay setting */
#define MCE_GCONF_TOUCH_UNBLOCK_DELAY_PATH MCE_GCONF_EVENT_INPUT_PATH "/touch_unblock_delay"
/* When MCE is made modular, this will be handled differently */
gboolean mce_input_init(void);
void mce_input_exit(void);
#endif /* _EVENT_INPUT_H_ */