Ignore:
Timestamp:
05/14/10 11:31:00 (2 years ago)
Author:
tholt
Message:
  • copyright header cleanup
  • whitepsace cleanup
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-display/python/avango-display-daemon.py

    r387 r448  
    44########################################################################## 
    55#                                                                        # 
    6 # This file is part of Avango.                                           # 
     6# This file is part of AVANGO.                                           # 
    77#                                                                        # 
    8 # Copyright 1997 - 2008 Fraunhofer-Gesellschaft zur Foerderung der       # 
     8# Copyright 1997 - 2010 Fraunhofer-Gesellschaft zur Foerderung der       # 
    99# angewandten Forschung (FhG), Munich, Germany.                          # 
    1010#                                                                        # 
    11 # Avango is free software: you can redistribute it and/or modify         # 
     11# AVANGO is free software: you can redistribute it and/or modify         # 
    1212# it under the terms of the GNU Lesser General Public License as         # 
    1313# published by the Free Software Foundation, version 3.                  # 
    1414#                                                                        # 
    15 # Avango is distributed in the hope that it will be useful,              # 
     15# AVANGO is distributed in the hope that it will be useful,              # 
    1616# but WITHOUT ANY WARRANTY; without even the implied warranty of         # 
    1717# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the           # 
     
    1919#                                                                        # 
    2020# 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/>. # 
    2422#                                                                        # 
    2523########################################################################## 
     
    4543    wiimote.buttons[ 9] = "EV_KEY::KEY_BACK"     # - 
    4644    wiimote.buttons[10] = "EV_KEY::KEY_FORWARD"  # + 
    47      
     45 
    4846    return wiimote 
    49      
    50   
     47 
     48 
    5149try: 
    5250    opts, args = getopt.getopt(sys.argv[1:], "hn:l:d:o:", 
     
    124122        spacemouse.buttons[4] = "EV_KEY::BTN_TOP"      # 4 
    125123        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 
    127125        spacemouse.buttons[7] = "EV_KEY::BTN_BASE"     # 7 
    128126        spacemouse.buttons[8] = "EV_KEY::BTN_BASE2"    # 8 
    129127        spacemouse.buttons[9] = "EV_KEY::BTN_0"        # Left SpaceNavigator Button 
    130128        spacemouse.buttons[10] = "EV_KEY::BTN_1"       # Right SpaceNavigator Button 
    131          
     129 
    132130elif display_type == "TwoView" or display_type == "iCone": 
    133131    #add the DTrack daemon and its known targets 
     
    150148    dtrack.stations[14] = avango.daemon.Station("ve-dtrack-head8") 
    151149    dtrack.stations[15] = avango.daemon.Station("ve-dtrack-logitech") 
    152      
     150 
    153151    #add the wiimotes 
    154152    devices.append(add_wiimote("/dev/input/ve-wiimote1", "wiimote1")) 
     
    156154    devices.append(add_wiimote("/dev/input/ve-wiimote3", "wiimote3")) 
    157155    devices.append(add_wiimote("/dev/input/ve-wiimote4", "wiimote4")) 
    158      
     156 
    159157 
    160158# start daemon (will enter the main loop) 
Note: See TracChangeset for help on using the changeset viewer.