Ejemplo n.º 1
0
# - getMoouseState (array) -
import Generator as G
import CPlot
import time

a = G.cartTetra((0, 0, 0), (1, 1, 1), (5, 5, 1))
CPlot.display([a], dim=2)

c = 1000
while (c > 0):
    l = CPlot.getMouseState()
    time.sleep(0.5)
    print l
    c -= 1
Ejemplo n.º 2
0
def getMouseState():
    """Return mouse state (mouse position and button state)."""
    return CPlot.getMouseState()