1 '''
2 Input related constants.
3
4 @var CMD_GESTURE: Constant that represents an input command gesture.
5 @type CMD_GESTURE: integer
6 @var FILTER_NONE: Input filter mode used in filtering keyboard gestures, no
7 filtering in this case.
8 @type FILTER_NONE: integer
9 @var FILTER_HANDLED: Input filter mode used in filtering keyboard gestures,
10 filtered gesture is acted upon in this case.
11 @type FILTER_HANDLED: integer
12 @var FILTER_ALL: Input filter mode used in filtering keyboard gestures,
13 all gestures are acted upon in this case.
14 @type FILTER_ALL: integer
15 @var INPUT_COMMAND_NAMES: A reverse mapping from command constants to string
16 command names
17 @type INPUT_COMMAND_NAMES: dictionary
18
19 @author: Peter Parente
20 @organization: IBM Corporation
21 @copyright: Copyright (c) 2005, 2007 IBM Corporation
22 @license: The BSD License
23
24 All rights reserved. This program and the accompanying materials are made
25 available under the terms of the BSD license which accompanies
26 this distribution, and is available at
27 U{http://www.opensource.org/licenses/bsd-license.php}
28 '''
29
30 CMD_GESTURE = -1
31
32
33 FILTER_NONE, FILTER_HANDLED, FILTER_ALL = 0, 1, 2
34
35
36 INPUT_COMMAND_NAMES = dict([(value, name.lower()[4:]) for name, value in
37 locals().items() if name.startswith('CMD_')])
38