Permalink
Browse files

BF: Use xlib in iohub on Linux.

  • Loading branch information...
djmannion authored and peircej committed Jul 13, 2017
1 parent 7fe92bb commit a9392f62e5e819788e77553583b6776d5992b849
Showing with 3 additions and 2 deletions.
  1. +3 −2 psychopy/iohub/devices/mouse/linux2.py
@@ -9,6 +9,7 @@
from . import MouseDevice
from ... import print2err,MouseConstants,printExceptionDetailsToStdErr
from .. import Computer,Keyboard
from .. import xlib
currentSec=Computer.getTime
@@ -33,8 +34,8 @@ def __init__(self,*args,**kwargs):
if Mouse._xdll is None:
try:
Mouse._xdll = cdll.LoadLibrary('libX11.so')
Mouse._xdisplay = self._xdll.XOpenDisplay(None)
Mouse._xscreen_count = self._xdll.XScreenCount(self._xdisplay)
Mouse._xdisplay = xlib.XOpenDisplay(None)
Mouse._xscreen_count = xlib.XScreenCount(self._xdisplay)
try:
# should use linux cmd:
# find /usr/lib -name libXfixes.so\*

0 comments on commit a9392f6

Please sign in to comment.