From 100b2b2180579f968528682377aa3c0905f525f1 Mon Sep 17 00:00:00 2001 From: Christopher Denter Date: Sun, 30 Jan 2011 17:25:49 +0100 Subject: [PATCH] mactouch: Fix mactouch input provider. (I broke it during pep8 conversion, sorry) --- kivy/input/providers/mactouch.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/kivy/input/providers/mactouch.py b/kivy/input/providers/mactouch.py index cd68d5656..fcc1315c1 100644 --- a/kivy/input/providers/mactouch.py +++ b/kivy/input/providers/mactouch.py @@ -21,7 +21,7 @@ if 'KIVY_DOC' not in os.environ: dll = '/System/Library/PrivateFrameworks/' + \ 'MultitouchSupport.framework/MultitouchSupport' - MultitouchSupport = ctypes.CDLL() + MultitouchSupport = ctypes.CDLL(dll) CFArrayGetCount = MultitouchSupport.CFArrayGetCount CFArrayGetCount.argtypes = [CFArrayRef] @@ -66,23 +66,23 @@ if 'KIVY_DOC' not in os.environ: ('unknown5_2', ctypes.c_int), ('unknown6', ctypes.c_float), ] - MTDataRef = ctypes.POINTER(MTData) + MTDataRef = ctypes.POINTER(MTData) - MTContactCallbackFunction = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, - MTDataRef, ctypes.c_int, - ctypes.c_double, ctypes.c_int) + MTContactCallbackFunction = ctypes.CFUNCTYPE(ctypes.c_int, ctypes.c_int, + MTDataRef, ctypes.c_int, + ctypes.c_double, ctypes.c_int) - MTDeviceRef = ctypes.c_void_p + MTDeviceRef = ctypes.c_void_p - MTRegisterContactFrameCallback = \ - MultitouchSupport.MTRegisterContactFrameCallback - MTRegisterContactFrameCallback.argtypes = \ - [MTDeviceRef, MTContactCallbackFunction] - MTRegisterContactFrameCallback.restype = None + MTRegisterContactFrameCallback = \ + MultitouchSupport.MTRegisterContactFrameCallback + MTRegisterContactFrameCallback.argtypes = \ + [MTDeviceRef, MTContactCallbackFunction] + MTRegisterContactFrameCallback.restype = None - MTDeviceStart = MultitouchSupport.MTDeviceStart - MTDeviceStart.argtypes = [MTDeviceRef, ctypes.c_int] - MTDeviceStart.restype = None + MTDeviceStart = MultitouchSupport.MTDeviceStart + MTDeviceStart.argtypes = [MTDeviceRef, ctypes.c_int] + MTDeviceStart.restype = None else: MTContactCallbackFunction = lambda x: None