Changeset 448 for trunk/avango-display/python/avango-display-daemon.py
- Timestamp:
- 05/14/10 11:31:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/avango-display/python/avango-display-daemon.py
r387 r448 4 4 ########################################################################## 5 5 # # 6 # This file is part of A vango. #6 # This file is part of AVANGO. # 7 7 # # 8 # Copyright 1997 - 20 08Fraunhofer-Gesellschaft zur Foerderung der #8 # Copyright 1997 - 2010 Fraunhofer-Gesellschaft zur Foerderung der # 9 9 # angewandten Forschung (FhG), Munich, Germany. # 10 10 # # 11 # A vangois free software: you can redistribute it and/or modify #11 # AVANGO is free software: you can redistribute it and/or modify # 12 12 # it under the terms of the GNU Lesser General Public License as # 13 13 # published by the Free Software Foundation, version 3. # 14 14 # # 15 # A vangois distributed in the hope that it will be useful, #15 # AVANGO is distributed in the hope that it will be useful, # 16 16 # but WITHOUT ANY WARRANTY; without even the implied warranty of # 17 17 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # … … 19 19 # # 20 20 # You should have received a copy of the GNU Lesser General Public # 21 # License along with Avango. If not, see <http://www.gnu.org/licenses/>. # 22 # # 23 # Avango is a trademark owned by FhG. # 21 # License along with AVANGO. If not, see <http://www.gnu.org/licenses/>. # 24 22 # # 25 23 ########################################################################## … … 45 43 wiimote.buttons[ 9] = "EV_KEY::KEY_BACK" # - 46 44 wiimote.buttons[10] = "EV_KEY::KEY_FORWARD" # + 47 45 48 46 return wiimote 49 50 47 48 51 49 try: 52 50 opts, args = getopt.getopt(sys.argv[1:], "hn:l:d:o:", … … 124 122 spacemouse.buttons[4] = "EV_KEY::BTN_TOP" # 4 125 123 spacemouse.buttons[5] = "EV_KEY::BTN_TOP2" # 5 126 spacemouse.buttons[6] = "EV_KEY::BTN_PINKIE" # 6 124 spacemouse.buttons[6] = "EV_KEY::BTN_PINKIE" # 6 127 125 spacemouse.buttons[7] = "EV_KEY::BTN_BASE" # 7 128 126 spacemouse.buttons[8] = "EV_KEY::BTN_BASE2" # 8 129 127 spacemouse.buttons[9] = "EV_KEY::BTN_0" # Left SpaceNavigator Button 130 128 spacemouse.buttons[10] = "EV_KEY::BTN_1" # Right SpaceNavigator Button 131 129 132 130 elif display_type == "TwoView" or display_type == "iCone": 133 131 #add the DTrack daemon and its known targets … … 150 148 dtrack.stations[14] = avango.daemon.Station("ve-dtrack-head8") 151 149 dtrack.stations[15] = avango.daemon.Station("ve-dtrack-logitech") 152 150 153 151 #add the wiimotes 154 152 devices.append(add_wiimote("/dev/input/ve-wiimote1", "wiimote1")) … … 156 154 devices.append(add_wiimote("/dev/input/ve-wiimote3", "wiimote3")) 157 155 devices.append(add_wiimote("/dev/input/ve-wiimote4", "wiimote4")) 158 156 159 157 160 158 # start daemon (will enter the main loop)
Note: See TracChangeset
for help on using the changeset viewer.
