Description

The configuration for UxbTransform is stored in an xml file in the currently user's App Data path. The configuration holds elements to describe the connected devices, application profiles, and the gesture mappings for each application. There is also a default application, any mappings placed here will be applied to all applications.

Sample

This example shows the configuration to map a mouse flick to the left to the browser back command in firefox. The process name is equivalent to what appears in the windows task manager without the .exe extension. The process name ALL is used only for the default application profile.
<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
  <Devices>
    <Device name="Mouse" type="MouseDevice" index="0" />
  </Devices>

  <Applications>
    <Application processName="ALL" name="Default">
      <GestureMappings />
    </Application>

    <Application name="Firefox" processName="firefox">
      <GestureMappings>
        <Mapping>
          <Gesture type="FlickGesture">
            <Properties>
              <Set property="Button" value="{DeviceBinding Path=Right, Name=Mouse}" />
              <Set property="Cursor" value="{DeviceBinding Path=Cursor, Name=Mouse}" />
              <Set property="FlickDirection" value="Left" />
            </Properties>
            <Modifiers />
          </Gesture>
          <Command name="BackCommand" commandSet="BrowserCommandSet">
            <Properties />
          </Command>
        </Mapping>
      </GestureMappings>
    </Application>

  </Applications>
</Configuration>

Last edited Nov 20, 2009 at 8:00 PM by PhilipB, version 4

Comments

No comments yet.