scripts/GizmoDeviceStrings.py

00001     #***
00002   #*********************************************************************
00003 #*************************************************************************
00004 #*** 
00005 #*** GizmoDaemon Config Script
00006 #***    GizmoDeviceStrings.py
00007 #***
00008 #*****************************************
00009   #*****************************************
00010     #***
00011     
00012 """
00013 
00014   Copyright (c) 2007, Gizmo Daemon Team
00015   Licensed under the Apache License, Version 2.0 (the "License");
00016   you may not use this file except in compliance with the License.
00017   You may obtain a copy of the License at 
00018 
00019         http://www.apache.org/licenses/LICENSE-2.0
00020 
00021   Unless required by applicable law or agreed to in writing, software
00022   distributed under the License is distributed on an "AS IS" BASIS,
00023   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00024   See the License for the specific language governing permissions and 
00025   limitations under the License. 
00026   
00027 """
00028 
00029 ############################
00030 # Imports
00031 ##########################
00032 
00033 from GizmoDaemon import *
00034 
00035 ############################
00036 # Version Information
00037 ##########################
00038 
00039 # This covers all of the base scripts (ie those not in modules.d) users
00040 # likely don't have to modify
00041 VERSION_REQUIRED = 3.4
00042 
00043 ############################
00044 # Device Strings
00045 ##########################
00046 
00047 """
00048 This file contains defitions for what device strings get claimed as which devices
00049 """
00050 
00051 # note all of the GIZMOS defines have the following properties:
00052 # - they matches against the product description as seen when gizmod starts up
00053 # - you can also put combinations of vendor / product ID codes in here
00054 #   - example: "keyboard" will match any device with keyboard in its description
00055 #   - example: "0x303:0x909" will match any device with Vendor ID: 0x303 
00056 #     and Product ID: 0x909
00057 # - you can also specify by device node
00058 #   - example: "/dev/input/event5" will match any device with that device node
00059 #   - example: "event5" will also match any device with device node "event5" in the path
00060 # - you can also specify devices that will NOT match
00061 #   - example: ["mouse", "!mouse emulation"] will match any device with a description
00062 #     containing "mouse", but NOT "mouse emulation"
00063 
00064 # list of devices to enumerate as ATI X10 RF remotes
00065 ATIX10_GIZMOS = ["x10 wireless technology"]
00066 
00067 # List of devices to enumerate as keyboards
00068 # this matches against the product description as seen when gizmod starts up
00069 # note that you can also put combinations of vendor / product ID codes in here
00070 #   - example: "keyboard" will match any device with keyboard in its description
00071 #   - example: "0x303:0x909" will math any device with Vendor ID: 0x303 
00072 #     and Product ID: 0x909
00073 KEYBOARD_GIZMOS = ["keyboard"]
00074 
00075 # List of devices to enumerate as mice
00076 MOUSE_GIZMOS = ["mouse", "trackball", "touchpad", "!Macintosh mouse button emulation"]
00077 
00078 # list of devices to enumerate as ATI X10 RF remotes
00079 LIRC_GIZMOS = ["lirc"]
00080 
00081 # List of devices to enumerate as mice
00082 POWERMATE_GIZMOS = ["powermate", "soundknob"]
00083 
00084 # Powermate long click duration
00085 POWERMATE_LONG_CLICK = 0.4
00086 
00087 # Powermate button timeout duration
00088 POWERMATE_BUTTON_TIMEOUT = 0.75
00089 
00090 # Powermate rotate sensitivity
00091 # This is done in clicks per event, so if it's set to 1 it's a one to 
00092 # one mapping between events
00093 # If it's set to 2 it take 2 rotate ticks to generate one event.
00094 POWERMATE_ROTATE_SENSITIVITY = 1
00095 
00096 # Default mixer element preferences (in order of priority)
00097 # Gizmo Daemon will scan all of the specified DEFAULT_MIXERS and apply the first
00098 # one it finds from the list that has the needed control as the default mixing
00099 # device.  Ie, If DEFAULT_MIXERS = ["master", "pcm"] then if the Master mixing 
00100 # element has a playback volume, but no mute switch, and the PCM channel has 
00101 # playback # volume and a mute switch, Gizmod.DefaultMixerVolume will be the 
00102 # Master mixer, and Gizmod.DefaultMixerSwitch will be the PCM mixer.
00103 DEFAULT_MIXERS = ["master", "pcm", "front", "center", "side", "surround", "headphones"]
00104 
00105 # KEYBOARD_LEDS defines how the keyboard LED visualizer will use the LEDs
00106 # The keyboard LEDs can be different on each keyboard, as there is no
00107 # standard way of defining them set to hardware manufacturers. 
00108 # Usually they are defined in this order:
00109 #       - Num Lock: 0
00110 #       - Caps Lock: 1
00111 #       - Scroll Lock: 2
00112 # If your keyboard LEDs differ, simply change the following variable so that
00113 # the first spot in the array points to the integer value of the "first"
00114 # LED on your keyboard, the second spot in the array points to the "second"
00115 # LED and so on.
00116 KEYBOARD_LEDS = [0, 1, 2]
00117 
00118 # Time in seconds to timeout the Alt-Tab events
00119 # Alt-Tabbing will stop after an Alt-Tab button press is not detected
00120 # in this amount of time
00121 ALT_TAB_TIMEOUT = 1.25

Generated on Wed Nov 7 10:04:16 2007 for gizmod by  doxygen 1.5.3