示例#1
0
 def getmouse():
     _ensure_initialised()
     mevent = ffi.new("MEVENT *")
     _check_ERR(lib.getmouse(mevent), "getmouse")
     return (mevent.id, mevent.x, mevent.y, mevent.z, mevent.bstate)
示例#2
0
 def getmouse():
     _ensure_initialised()
     mevent = ffi.new("MEVENT *")
     _check_ERR(lib.getmouse(mevent), "getmouse")
     return (mevent.id, mevent.x, mevent.y, mevent.z, mevent.bstate)