Then copy and paste the following two macros in your tree:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1534">
<Macro Name="MousePad">
<Event Name="Auvisio.MouseDir" id="137" />
<Action>
EventGhost.PythonCommand(u"eg.plugins.EventGhost.TriggerEvent(u'Auvisio.MouseDir.' + str(int(eg.event.payload)), 0)")
</Action>
<Action>
EventGhost.DisableItem(XmlIdLink(137))
</Action>
</Macro>
<Macro Name="MouseButtonUp">
<Event Name="Auvisio.MouseButtonUp" />
<Action>
EventGhost.EnableItem(XmlIdLink(137))
</Action>
</Macro>
</EventGhost>
Finally, you will need to add macros for each direction you wish to react to (there are 16 available in total from 0 to 333) and assign the appropriate event (or more in a single macro), such as Auvisio.MouseDir.0, Auvisio.MouseDir.27, Auvisio.MouseDir.333 etc.