Skip to content

Commit

Permalink
More saitek cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Sep 1, 2014
1 parent eebeab6 commit cb51e30
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mfd/saitek/directoutput.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def RegisterSoftButtonCallback(self, device_handle, function):
"""
logging.debug("DirectOutput.RegisterSoftButtonCallback({}, {})".format(device_handle, function))
return self.DirectOutputDLL.DirectOutput_RegisterSoftButtonCallback(device_handle, function, SOFTBUTTON_SELECT)
return self.DirectOutputDLL.DirectOutput_RegisterSoftButtonCallback(device_handle, function, 0)

def RegisterPageCallback(self, device_handle, function):
"""
Expand Down Expand Up @@ -332,13 +332,13 @@ def __init__(self, dll_path="C:\\Program Files (x86)\\Saitek\\DirectOutput\\Dire

logging.info("Creating callback closures.")
self.onDevice_closure = self._OnDeviceClosure()
logging.debug("onDevice_closure {}".format(self.onDevice_closure))
logging.debug("onDevice_closure is {}".format(self.onDevice_closure))
self.onEnumerate_closure = self._OnEnumerateClosure()
logging.debug("onEnumerate_closure {}".format(self.onEnumerate_closure))
logging.debug("onEnumerate_closure is {}".format(self.onEnumerate_closure))
self.onPage_closure = self._OnPageClosure()
logging.debug("onPage_closure {}".format(self.onPage_closure))
logging.debug("onPage_closure is {}".format(self.onPage_closure))
self.onSoftButton_closure = self._OnSoftButtonClosure()
logging.debug("onSoftButton_closure {}".format(self.onSoftButton_closure))
logging.debug("onSoftButton_closure is {}".format(self.onSoftButton_closure))

result = self.direct_output.RegisterDeviceCallback(self.onDevice_closure)
if result != S_OK:
Expand Down

0 comments on commit cb51e30

Please sign in to comment.